Example #1
0
def test_find_smallest_letter_greater_than_target_8():
    letters = ["x", "y"]
    target = "z"
    expected = "x"
    actual = next_greatest_letter(letters, target)
    assert actual == expected
Example #2
0
def test_find_smallest_letter_greater_than_target_6():
    letters = ["c", "f", "j"]
    target = "k"
    expected = "c"
    actual = next_greatest_letter(letters, target)
    assert actual == expected