Add unit-tests to node::Taffy#178
Conversation
TimJentzsch
left a comment
There was a problem hiding this comment.
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.
alice-i-cecile
left a comment
There was a problem hiding this comment.
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! |
Weibye
left a comment
There was a problem hiding this comment.
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.rsto./src/node.rsand 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::Taffyhas been moved tomod::node./test/node.rshas been removedFeedback wanted