Lines Matching refs:n
22 echo "\n";
27 $n=0;
29 $n += test_me("equal" , 0, "12345", "12345");
30 $n += test_me("1st empty" , 3, "", "xzy");
31 $n += test_me("2nd empty" , 3, "xzy", "");
32 $n += test_me("both empty" , 0, "", "");
33 $n += test_me("1 char" , 1, "1", "2");
34 $n += test_me("2 char swap", 2, "12", "21");
36 $n += test_me("inexpensive delete", 2, "2121", "11", 2, 1, 1);
37 $n += test_me("expensive delete" , 10, "2121", "11", 2, 1, 5);
38 $n += test_me("inexpensive insert", 2, "11", "2121", 1, 1, 1);
39 $n += test_me("expensive insert" , 10, "11", "2121", 5, 1, 1);
41 $n += test_me("expensive replace" , 3, "111", "121", 2, 3, 2);
42 $n += test_me("very expensive replace", 4, "111", "121", 2, 9, 2);
44 $n += test_me("bug #7368", 2, "13458", "12345");
45 $n += test_me("bug #7368", 2, "1345", "1234");
47 $n += test_me("bug #6562", 1, "debugg", "debug");
48 $n += test_me("bug #6562", 1, "ddebug", "debug");
49 $n += test_me("bug #6562", 2, "debbbug", "debug");
50 $n += test_me("bug #6562", 1, "debugging", "debuging");
52 $n += test_me("bug #16473", 2, "a", "bc");
53 $n += test_me("bug #16473", 2, "xa", "xbc");
54 $n += test_me("bug #16473", 2, "xax", "xbcx");
55 $n += test_me("bug #16473", 2, "ax", "bcx");
57 $n += test_me("custom", -1, "111", "121", "my_levcode");
58 $n += test_me("lt maxlength1", 254, "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghij…
59 $n += test_me("gt maxlength1", -1, "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcdefghijk…
61 $n += test_me("lt maxlength2", 254, "A", "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcde…
62 $n += test_me("gt maxlength2", -1, "A", "AbcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwxyzAbcde…
64 echo ($n==0)?"all passed\n":"$n failed\n";