Sha256: a65f5a72d1d37af25420cfa71b816ea3428cec3953751fbc5144acf9a154c3d1
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
require 'test_helper' class LevenshteinTest < Test::Unit::TestCase def test_levenshtein assert Levenshtein.distance("test", "Test") == 1 end def test_levenshtein_threshold assert Levenshtein.distance("test 1", "Test 2", 1) == -1 assert Levenshtein.distance("test 1", "Test 2", 3) == 2 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
levenshtein-jruby-0.1.0-java | test/levenshtein_test.rb |