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

Add some unit tests #14

Merged
merged 6 commits into from Dec 13, 2015
Merged

Add some unit tests #14

merged 6 commits into from Dec 13, 2015

Conversation

RadixSeven
Copy link
Contributor

I added tests for some edge cases I felt might not be covered by the random test currently being done.

I also added two convenience methods that don't require a pre-existing output array.

Eric Moyer added 6 commits December 13, 2015 13:24
Rather than reinventing the wheel to add the unit tests, I just added
the single-include header from the Catch unit-test framework.

https://github.com/philsquared/Catch
Two places in the code did not need modifiable references: copyTree
and the iteration over the intervals. I also made a note that the
from-vector constructor changes the order of its input vector.
ekg added a commit that referenced this pull request Dec 13, 2015
@ekg ekg merged commit 8fc4be9 into ekg:master Dec 13, 2015
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.

None yet

2 participants