Exemple #1
0
def test_equal_words_no_backspaces():
    assert backspace_compare("asdf", "asdf") is True
Exemple #2
0
def test_different_words_no_backspaces():
    assert backspace_compare("asdf", "fdsa") is False
Exemple #3
0
def test_backspaces_at_the_start():
    assert backspace_compare("##asdf#", "#asdd#ff##") is True
Exemple #4
0
def test_only_backspaces_and_empty_string():
    assert backspace_compare("###", "") is True
Exemple #5
0
def test_backspaces_in_the_middle():
    assert backspace_compare("asdf####asdf", "as00##df") is True