1 ! Copyright (C) 2006 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test lcs ;
7 \ levenshtein must-infer
9 [ 3 ] [ "sitting" "kitten" levenshtein ] unit-test
10 [ 3 ] [ "kitten" "sitting" levenshtein ] unit-test
11 [ 1 ] [ "freshpak" "freshpack" levenshtein ] unit-test
12 [ 1 ] [ "freshpack" "freshpak" levenshtein ] unit-test
14 [ "hell" ] [ "hello" "hell" lcs ] unit-test
15 [ "hell" ] [ "hell" "hello" lcs ] unit-test
16 [ "ell" ] [ "ell" "hell" lcs ] unit-test
17 [ "ell" ] [ "hell" "ell" lcs ] unit-test
18 [ "abd" ] [ "faxbcd" "abdef" lcs ] unit-test
29 } ] [ "faxbcd" "abdef" diff ] unit-test