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