Beispiel #1
0
def test_1():
    assert strDist("catcowcat", "cow") == 3
Beispiel #2
0
def test_12():
    assert strDist("hiHellohihihi", "o") == 1
Beispiel #3
0
def test_13():
    assert strDist("hiHellohihihi", "ll") == 2
Beispiel #4
0
def test_11():
    assert strDist("hiHellohihihi", "hih") == 5
Beispiel #5
0
def test_0():
    assert strDist("catcowcat", "cat") == 9
Beispiel #6
0
def test_9():
    assert strDist("", "z") == 0
Beispiel #7
0
def test_10():
    assert strDist("hiHellohihihi", "hi") == 13
Beispiel #8
0
def test_7():
    assert strDist("z", "z") == 1
Beispiel #9
0
def test_8():
    assert strDist("x", "z") == 0
Beispiel #10
0
def test_6():
    assert strDist("xyx", "z") == 0
Beispiel #11
0
def test_5():
    assert strDist("xyx", "y") == 1
Beispiel #12
0
def test_4():
    assert strDist("xyx", "x") == 3
Beispiel #13
0
def test_3():
    assert strDist("abccatcowcatcatxyz", "cat") == 12
Beispiel #14
0
def test_2():
    assert strDist("cccatcowcatxx", "cat") == 9