コード例 #1
0
ファイル: io_tests.py プロジェクト: Smeb/coding-challenge-rb
def test_recv_robot_info_fail():
    """recv_robot_info should return None on fail"""
    string = "CHAMP 32 21 W"
    result = io.recv_directions(string)
    assert_equals(result, None)
コード例 #2
0
ファイル: io_tests.py プロジェクト: Smeb/coding-challenge-rb
def test_recv_directions():
    """recv_directions should return regex result with group equal to
    input on success"""
    string = "LLLRRFFF"
    result = io.recv_directions(string)
    assert_equals(result.group(), string)
コード例 #3
0
ファイル: io_tests.py プロジェクト: Smeb/coding-challenge-rb
def test_recv_directions_fail():
    """recv_directions should return None on fail"""
    string = "CHAMPLFLFLFL"
    result = io.recv_directions(string)
    assert_equals(result, None)