예제 #1
0
def test_two_chars():
    assert reverse('ab') == 'ba'
예제 #2
0
def test_single_char():
    assert reverse('a') == 'a'
예제 #3
0
def test_even_len():
    assert reverse('abcdef') == 'fedcba'
예제 #4
0
def test_unicode_chars():
    assert reverse(u"<💩><👽>") == u">\U0001F47D<>\U0001F4A9<"
예제 #5
0
def test_odd_len():
    assert reverse('abcde') == 'edcba'