Example #1
0
def test_scissors_beats_paper():
    result = rps.eval_game('scissors', 'paper')
    assert result == 'human'
Example #2
0
def test_scissors_beats_scissors():
    result = rps.eval_game('scissors', 'scissors')
    assert result == 'tie'
Example #3
0
def test_paper_beats_scissors():
    result = rps.eval_game('paper', 'scissors')
    assert result == 'computer'
Example #4
0
def test_scissors_beats_rock():
    result = rps.eval_game('scissors', 'rock')
    assert result == 'computer'
Example #5
0
def test_paper_beats_paper():
    result = rps.eval_game('paper', 'paper')
    assert result == 'tie'
Example #6
0
def test_paper_beats_rock():
    result = rps.eval_game('paper', 'rock')
    assert result == 'human'
Example #7
0
def test_rock_beats_scissors():
    result = rps.eval_game('rock', 'scissors')
    assert result == 'human'
Example #8
0
def test_rock_beats_paper():
    result = rps.eval_game('rock', 'paper')
    assert result == 'computer'
Example #9
0
def test_rock_beats_rock():
    result = rps.eval_game('rock', 'rock')
    assert result == 'tie'