test/test.rb in levenshtein-0.1.0 vs test/test.rb in levenshtein-0.1.1

- old
+ new

@@ -38,9 +38,10 @@ def test_same_head_and_or_tail assert_equal(3, Levenshtein.distance("ab123cd", "abxyzcd")) assert_equal(3, Levenshtein.distance("ab123", "abxyz")) assert_equal(3, Levenshtein.distance("123cd", "xyzcd")) + assert_equal(5, Levenshtein.distance("123cd123", "123")) assert_in_delta(0.42, Levenshtein.normalized_distance("ab123cd", "abxyzcd"), 0.01) assert_in_delta(0.6, Levenshtein.normalized_distance("ab123", "abxyz"), 0.01) assert_in_delta(0.6, Levenshtein.normalized_distance("123cd", "xyzcd"), 0.01) end