Closed palant closed 3 months ago
Many thanks. I thought this had been addressed. Will make a test. Thank you for the code. It should definitely be insert order independent.
Thank you. This has been fixed and published in version 0.4.2. Let me know if you have any further troubles. Thank you for reporting the issue.
Confirmed, I removed the work-around and my tests are still passing.
Great. Thank you. Closing issue.
It seems that constructing a trie will only work correctly if values are inserted starting with the shortest path. Here is a modified code example from the documentation:
The first assert succeeds, the second fails –
app
is not present, it was dropped becauseapple
was already present when it was supposed to be added.