-
Notifications
You must be signed in to change notification settings - Fork 108
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 unit-tests to node::Taffy
#178
Add unit-tests to node::Taffy
#178
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the tests to a tests
module (in the same file). You can take a look at the MaybeMath
tests as reference.
The tests itself look good to me though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to merge once Tim's comment is resolved.
50fb660
to
00cfab5
Compare
As a tip: You can use |
That I didn't know, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hang on, going to migrate tests to new_leaf
All comments should now be resolved :) |
* Creating scaffolding for new tests * Moving and adding tests * Fleshing out more tests * Add test for find-node * fix import using #[cfg] * adding child at index text * Adding child-count test * 0-index consistency pass on naming * adding children test * Finishing up last tests * revert uneccesary changes * Move tests inside `tests` module + fix comment placement * Removing unnecessary test * fix type of vec? * std::vec -> sys::vec * Further attempt at fixing vec * Exposing some methods so we can use them for testing * Fix vec type * Add helper comment * attempting pushing to vec * Rebase onto new changes * Cleanup * Migrate tests to new_leaf
Objective
Fixes #177
Context
As I understand it:
So as a result I have moved all tests from
./tests/node.rs
to./src/node.rs
and expanded upon them to cover more of the internals. I've created a discussion on this topic #179 where we can discuss this in detail.Changelog
node::Taffy
has been moved tomod::node
./test/node.rs
has been removedFeedback wanted