Fix soundex
parent
2a1f6885fb
commit
19919bb130
|
@ -2,3 +2,4 @@ IN: soundex.tests
|
|||
USING: soundex tools.test ;
|
||||
|
||||
[ "S162" ] [ "supercalifrag" soundex ] unit-test
|
||||
[ "M000" ] [ "M" soundex ] unit-test
|
||||
|
|
|
@ -25,8 +25,8 @@ TR: soundex-tr
|
|||
[ first>upper ]
|
||||
[
|
||||
soundex-tr
|
||||
trim-first
|
||||
remove-duplicates
|
||||
[ "" ] [ trim-first ] if-empty
|
||||
[ "" ] [ remove-duplicates ] if-empty
|
||||
remove-zeroes
|
||||
] bi
|
||||
pad-4
|
||||
|
|
Loading…
Reference in New Issue