shard-radix/spec
Luis Lavena 9895655a8a Fix incorrect lookup on non-shared partial keys
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
2017-03-12 12:36:05 -03:00
..
radix Fix incorrect lookup on non-shared partial keys 2017-03-12 12:36:05 -03:00
spec_helper.cr Extraction: initial import 2016-01-24 19:19:42 -03:00