Sha256: 8416914995fd947bd446ea64b2a793cd9897186e5a60466bb4dd658b2450a76e
Contents?: true
Size: 491 Bytes
Versions: 3
Compression:
Stored size: 491 Bytes
Contents
require "preamble" require "text/soundex" require 'yaml' class SoundexTest < Test::Unit::TestCase def test_cases YAML.load(%{ Euler: E460 Ellery: E460 Gauss: G200 Ghosh: G200 Hilbert: H416 Heilbronn: H416 Knuth: K530 Kant: K530 Lloyd: L300 Ladd: L300 Lukasiewicz: L222 Lissajous: L222 }).each do |input, expected_output| assert_equal expected_output, Text::Soundex.soundex(input) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
text-1.2.2 | test/test_soundex.rb |
text-1.0.5 | test/test_soundex.rb |
text-1.2.1 | test/test_soundex.rb |