Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test cases for API #61

Closed
wants to merge 10 commits into from
Closed

Test cases for API #61

wants to merge 10 commits into from

Conversation

jmanuel1
Copy link
Contributor

@jmanuel1 jmanuel1 commented May 12, 2016

I've added Jasmine which hopefully do their job pretty well. Some of the tests do fail though, where Please gives me unexpected results. I've marked those tests as 'possibly found a bug' or similar.

See issue #19 for why.

Most of the tests pass. Some pass only occasionally (!?).
Jasmine does all of the tests (accessed via opening SpecRunner.html in a
browser).
It's just one little test that uses random data and the
hexToRgb helper.
While random data did seem like a good idea, unless you're using
a quicktest equivalent it just makes your test ugly. All tests from
now on will be by example.

Lesson learned. (To see the lesson, go back.)
Please.*_to_* all tested now.
All tests are done! Most of them pass.
Now the specs are checked for code quality.
Each expect should test both its conditions, not just one. Both upper
and lower bound are needed.
To make tests more complete, and to catch issue Fooidge#57.
@jmanuel1 jmanuel1 closed this Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant