shard-radix/spec
Luis Lavena f764b3aed2 Fix incorrect lookup in non-root nodes
Given the following non-root tree:

  tree = Tree(Symbol).new
  tree.add "/prefix/", :prefix
  tree.add "/prefix/foo", :foo

Attempt to lookup for `/foo` was incorrectly identifying `:foo` entry as
the correct value.

This change ensures that child nodes of the current node are not scanned
if key and path being looked up do not match.

Fixes #27
2021-01-30 23:35:53 -03:00
..
radix Fix incorrect lookup in non-root nodes 2021-01-30 23:35:53 -03:00
spec_helper.cr Extraction: initial import 2016-01-24 19:19:42 -03:00