Beispiel #1
0
def test1():
    """Tests single wave. 0%"""
    from seasick import sea_sick
    assert sea_sick("~") == "No Problem"
Beispiel #2
0
def test6():
    """same as test5 but with different 'waves'"""
    from seasick import sea_sick
    assert sea_sick("baababbbbaaaaaaabbaba") == "Throw Up"
Beispiel #3
0
def test5():
    """9 wave changes out of 21 spaces: 43%"""
    from seasick import sea_sick
    assert sea_sick("_~~_~____~~~~~~~__~_~") == "Throw Up"
Beispiel #4
0
def test4():
    """No wave changes. 0 %"""
    from seasick import sea_sick
    assert sea_sick("____") == "No Problem"
Beispiel #5
0
def test3():
    """4 wave changes out of 12 spaces: 25%"""
    from seasick import sea_sick
    assert sea_sick("______~___~_") == "Throw Up"
Beispiel #6
0
def test2():
    """11 wave changes out of 28 spaces: 39%"""
    from seasick import sea_sick
    assert sea_sick("_~~~~~~~_~__~______~~__~~_~~") == "Throw Up"