def test():
    for larger_tol, to_upper, s1, s2 in gen_test_args(jaro_tests):
        if 1:
            print str(larger_tol).ljust(5),
            print str(to_upper).ljust(5),
            print (s1, s2)
        compare(s1, s2, larger_tol, to_upper)
        compare(s2, s1, larger_tol, to_upper)
示例#2
0
def test():
    for larger_tol, to_upper, s1, s2 in gen_test_args(jaro_tests):
        if 1:
            print str(larger_tol).ljust(5),
            print str(to_upper).ljust(5),
            print(s1, s2)
        compare(s1, s2, larger_tol, to_upper)
        compare(s2, s1, larger_tol, to_upper)
示例#3
0
def test():
    for larger_tol, to_upper, s1, s2 in gen_test_args(jaro_tests):
        compare(s1, s2, larger_tol)
示例#4
0
def test():
    for larger_tol, to_upper, s1, s2 in gen_test_args(jaro_tests):
        compare(s1, s2, larger_tol)