示例#1
0
def test_example_2():
    s = "a##c"
    t = "#a#c"
    assert backspace_compare(s, t) is True
示例#2
0
def test_example_3():
    a = "a#c"
    t = "b"
    assert backspace_compare(a, t) is False
示例#3
0
def test_example_1():
    s = "ab#c"
    t = "ad#c"
    assert backspace_compare(s, t) is True
示例#4
0
def test_two_backspace():
    assert hw2.backspace_compare("a##c", "#a#c")
示例#5
0
def test_one_backspace():
    assert hw2.backspace_compare("ab#c", "ad#c")
示例#6
0
def test_equal():
    assert hw2.backspace_compare("dancing queen", "dancing queens#")
示例#7
0
def test_empty():
    assert hw2.backspace_compare("", "")
示例#8
0
def test_false():
    assert not hw2.backspace_compare("a#c", "b")