You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I understand it, this test asserts for the behavior of a binary tree rather than a binary search tree. Adding a duplicate value should probably throw an exception or simply drop the duplicate, right? Happy to open a PR for this if folks agrees.
The text was updated successfully, but these errors were encountered:
But it looks like these tests are not generated from the canonical data.
Any PR that improves things is strongly encouraged.
There's another issue about this exercise, maybe you also have an opinion on that: #513
Insti
changed the title
BST test_inserting_same may be inaccurate/confusing
binary-search-tree: test_inserting_same may be inaccurate/confusing
Sep 22, 2018
@Insti Canonical data agrees with the current implementation. I suppose the behavior of duplicate inserts is dependant on application rather than some strict interpretation of the data structure. I'll close this, sorry for the noise!
As I understand it, this test asserts for the behavior of a binary tree rather than a binary search tree. Adding a duplicate value should probably throw an exception or simply drop the duplicate, right? Happy to open a PR for this if folks agrees.
The text was updated successfully, but these errors were encountered: