Exemplo n.º 1
0
def test_string_rotation_seven():
    original_str = "rainbow"
    lookup_str = "rain"

    expected = False

    actual = string_rotation(original_str, lookup_str)

    assert actual == expected, "Error on test_string_rotation_seven."
Exemplo n.º 2
0
def test_string_rotation_eight():
    original_str = "rainbow"
    lookup_str = "wrainbo"

    expected = True

    actual = string_rotation(original_str, lookup_str)

    assert actual == expected, "Error on test_string_rotation_eight."
Exemplo n.º 3
0
def test_string_rotation_six():
    original_str = "abcdefg"
    lookup_str = "efgcde"

    expected = False

    actual = string_rotation(original_str, lookup_str)

    assert actual == expected, "Error on test_string_rotation_six."
Exemplo n.º 4
0
def test_string_rotation_five():
    original_str = "abcde"
    lookup_str = "abcde"

    expected = True

    actual = string_rotation(original_str, lookup_str)

    assert actual == expected, "Error on test_string_rotation_five."
Exemplo n.º 5
0
def test_string_rotation_one():
    original_str = "waterbottle"
    lookup_str = ""

    expected = False

    actual = string_rotation(original_str, lookup_str)

    assert actual == expected, "Error on test_string_rotation_one."
Exemplo n.º 6
0
def test_string_rotation_four():
    original_str = "rainbow"
    lookup_str = "bowrain"

    expected = True

    actual = string_rotation(original_str, lookup_str)

    assert actual == expected, "Error on test_string_rotation_four."
Exemplo n.º 7
0
def test_string_rotation_three():
    original_str = "waterBottlE"
    lookup_str = "erbottlewat"

    expected = True

    actual = string_rotation(original_str, lookup_str)

    assert actual == expected, "Error on test_string_rotation_three."