Debian Codegraph @

testsuite/tests/utils/edit_distance.reference

raw
1 [01] (edit_distance "a" "a" 1), expected Some 0
2 OK
3 [02] (edit_distance "a" "a" 0), expected Some 0
4 OK
5 [03] (edit_distance "a" "b" 1), expected Some 1
6 OK
7 [04] (edit_distance "a" "b" 0), expected None
8 OK
9 [05] (edit_distance "add" "adad" 3), expected Some 1
10 OK
11 [06] (edit_distance "delete" "delte" 3), expected Some 1
12 OK
13 [07] (edit_distance "subst" "sabst" 3), expected Some 1
14 OK
15 [08] (edit_distance "swap" "sawp" 3), expected Some 1
16 OK
17 [09] (edit_distance "abbb" "bbba" 3), expected Some 2
18 OK
19 [10] (edit_distance "abbb" "bbba" 1), expected None
20 OK
21 [11] (edit_distance "xyzwabc" "mnpqrabc" 10), expected Some 5
22 OK
23 [12] (edit_distance "abcxyzw" "abcmnpqr" 10), expected Some 5
24 OK
25 [13] (edit_distance "a" "a" max_int), expected Some 0
26 OK
27 [14] (edit_distance "a" "b" max_int), expected Some 1
28 OK
29 [15] (edit_distance "abc" "ade" max_int), expected Some 2
30 OK
31 [16] (edit_distance "" "" 3), expected Some 0
32 OK
33 [17] (edit_distance "" "abc" 3), expected Some 3
34 OK
35 [18] (edit_distance "abcd" "" 3), expected None
36 OK
37
38 All tests succeeded.