mezis / blurrily

Millisecond fuzzy string matching for Ruby
MIT License
90 stars 14 forks source link

Broken find while references are duplicated #2

Closed dawid-sklodowski closed 11 years ago

dawid-sklodowski commented 11 years ago

Attached failing test shows the problem

> map = Blurrily::Map.new
=> #<Blurrily::Map:0x007fefa4a75c60>
> map.put('london', 13)
=> nil
> map.put('londos', 13)
=> nil
> map.find('londi')
Assertion failed: ((int) match_ptr->matches <= nb_trigrams), function blurrily_storage_find, file storage.c, line 485.
Abort trap: 6
mezis commented 11 years ago

Won't merge right away as it break the build, but I'll come up with a fix. Thanks!