Пример #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."
Пример #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."
Пример #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."
Пример #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."
Пример #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."
Пример #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."
Пример #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."