-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix partial traversals, walking with traverse_from
- find and fix bug with handling sub-segments during TraversedPartialPath exception, while walking over the trie, using cached nodes, with traverse_from() in the test test_trie_walk_root_change_with_cached_traverse_from() - add example() to make sure that case ^ is tested in both tests about walking over a changed trie. - modify hypothesis inputs a bit to encourage hypothesis to find interesting scenarios like the above example. The new approach did find a relevant example once or twice, but needed low-thousands of examples. - Test the traverse_from() scenario with both approaches: emptying the cache and keeping it. Handle both scenarios properly.
- Loading branch information
Showing
1 changed file
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters