4 ms·
Hopefully accurate? You should probably write some tests to ascertain that.
by bitwize 9y ago
Hopefully accurate?
You should probably write some tests to ascertain that.
- sahilmuthoo 9y agoI've found it hard to write tests (though there are a few here - https://github.com/sahilm/fuzzy/blob/master/fuzzy_test.go https://github.com/sahilm/fuzzy/blob/master/fuzzy_test.go ). Match quality is often subjective. Tweaking one parameter messes with others. This library came out of a project I started. The project never saw the light of day. If I do see real world use, it'll be easier to find bugs and fix them :)
- yani 9y agoNo tests makes it impossible to add it to real world projects IMO
- sahilmuthoo 9y agoThere are tests.
- bacongobbler 9y agoThat sounds to me like a great starting point for others to contribute code. :P Can't we all just be happy that someone decided to write a fun project and made it freely available for others to learn from?
- greglindahl 9y agoPeople are supposed to be gentle in Show HN postings, but often they’re a bit mean.
- userbinator 9y agoI suspect "hopefully" is in reference to the fact that it's doing fuzzy matching.