Example #1
0
def test_rsub_old_empty_new_str():
    assert rsub("abcdef", "", "123") == "abcdef123"
Example #2
0
def test_rsub_old_empty_new_empty():
    assert rsub("abcdef", "") == "abcdef"
Example #3
0
def test_rsub_old_str_new_empty():
    assert rsub("abcdef", "def") == "abc"
Example #4
0
def test_rsub_old_str_new_str():
    assert rsub("abcdef", "def", "123") == "abc123"
Example #5
0
def test_rsub_no_match():
    assert rsub("abcdef", "xyz") == "abcdef"