コード例 #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."