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