mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
9895655a8a
Given the following nodes in a tree: # ( 8) /product # ( 4) /new # ( 1) s tree = Radix::Tree(Symbol).new tree.add "/products", :products tree.add "/product/new", :product_new It failed to properly identify `/products` during lookup: result = tree.find "/products" result.found? # => false Caused by incorrect comparsion of `s` remaining path against `/new` node instead of continue comparison with the next one. Fixes #21 |
||
---|---|---|
.. | ||
radix | ||
spec_helper.cr |