Sha256: 8d155e0f39272f0584f016a52bbc3d17a4ca6a31986556a105ea114eb6766bdd
Contents?: true
Size: 485 Bytes
Versions: 3
Compression:
Stored size: 485 Bytes
Contents
require 'test/unit' require 'facet/soundex' class TC_Soundex < Test::Unit::TestCase TESTVEC = "Euler Ellery Gauss Ghosh Hilbert Heilbronn Knuth Kant Lloyd Ladd Lukasiewicz Lissajous".split(" ") RESVEC = "E460 E460 G200 G200 H416 H416 K530 K530 L300 L300 L222 L222".split(" ") def test_soundex TESTVEC.each_with_index {|str,i| res = Text::Soundex.soundex(str) #print "#{str.ljust(11)} => #{res} ... " assert_equal( RESVEC[i], res ) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | test/tc_soundex.rb |
facets-0.7.1 | test/tc_soundex.rb |
facets-0.7.2 | test/tc_soundex.rb |