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