Skip to content

Commit

Permalink
adding test for Levenshtein
Browse files Browse the repository at this point in the history
  • Loading branch information
tansaku committed Jan 9, 2013
1 parent 9607804 commit 03943c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ test( "testing JaroWinklerDistance", function() {
equal(natural.JaroWinklerDistance('not', 'same'),0);
});
test( "testing LevenshteinDistance", function() {

equal(natural.LevenshteinDistance("ones","onez"),1);
equal(natural.LevenshteinDistance('one', 'one'),0);
});
test( "testing modified LevenshteinDistance", function() {

Expand Down

0 comments on commit 03943c6

Please sign in to comment.