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

Commits on Dec 13, 2015

  1. Add catch unit test framework

    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
    Eric Moyer committed Dec 13, 2015
    Configuration menu
    Copy the full SHA
    aff03e2 View commit details
    Browse the repository at this point in the history
  2. Add code to run the test framework

    Eric Moyer committed Dec 13, 2015
    Configuration menu
    Copy the full SHA
    18c9f08 View commit details
    Browse the repository at this point in the history
  3. Add convenience methods returning result vectors

    Eric Moyer committed Dec 13, 2015
    Configuration menu
    Copy the full SHA
    dbc53d5 View commit details
    Browse the repository at this point in the history
  4. Add constness

    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.
    Eric Moyer committed Dec 13, 2015
    Configuration menu
    Copy the full SHA
    8560907 View commit details
    Browse the repository at this point in the history
  5. Test empty and single element tree

    Eric Moyer committed Dec 13, 2015
    Configuration menu
    Copy the full SHA
    2975b94 View commit details
    Browse the repository at this point in the history
  6. Check that identical intervals are both stored

    Eric Moyer committed Dec 13, 2015
    Configuration menu
    Copy the full SHA
    b07e149 View commit details
    Browse the repository at this point in the history