예제 #1
0
def test_paper_beats_rock():
    result = rps.evaluate_game("paper", "rock")
    assert result == "human"
예제 #2
0
def test_paper_beats_rock2():
    result = rps.evaluate_game('rock', 'paper')
    assert result == 'computer'
예제 #3
0
def test_rock_beats_scissors2():
    result = rps.evaluate_game('scissors', 'rock')
    assert result == 'computer'
예제 #4
0
def test_paper_and_paper_is_a_tie():
    result = rps.evaluate_game('paper', 'paper')
    assert result == 'tie'
예제 #5
0
def test_scissors_and_scissors_is_a_tie():
    result = rps.evaluate_game('scissors', 'scissors')
    assert result == 'tie'
예제 #6
0
def test_evaluate_game_tie_paper():
    assert rps.evaluate_game('paper', 'paper') == 'tie'
예제 #7
0
def test_scissors_beats_scissors():
    result = rps.evaluate_game('scissors','scissors')
    assert result == 'tie'
예제 #8
0
def test_rock_fails_paper():
    result = rps.evaluate_game('rock', 'paper')
    assert result == 'computer'
예제 #9
0
def test_scissors_fails_rock():
    result = rps.evaluate_game('scissors', 'rock')
    assert result == 'computer'
예제 #10
0
def test_rock_beats_scissors2():
    result = rps.evaluate_game("scissors", "rock")
    assert result == "computer"
예제 #11
0
def test_scissors_beats_paper2():
    result = rps.evaluate_game("paper", "scissors")
    assert result == "computer"
예제 #12
0
def test_paper_beats_rock2():
    result = rps.evaluate_game("rock", "paper")
    assert result == "computer"
예제 #13
0
def test_scissors_beats_paper():
    result = rps.evaluate_game("scissors", "paper")
    assert result == "human"
예제 #14
0
def test_rock_beats_scissors():
    result = rps.evaluate_game("rock", "scissors")
    assert result == "human"
예제 #15
0
def test_evaluate_game_human_sciss_win():
    assert rps.evaluate_game('scissors', 'paper') == 'human'
예제 #16
0
def test_paper_fails_scissors():
    result = rps.evaluate_game('paper', 'scissors')
    assert result == 'computer'
예제 #17
0
def test_evaluate_game_tie_rock():
    assert rps.evaluate_game('rock', 'rock') == 'tie'
예제 #18
0
def test_paper_tie_paper():
    result = rps.evaluate_game('paper', 'paper')
    assert result == 'tie'
예제 #19
0
def test_evaluate_game_tie_sciss():
    assert rps.evaluate_game('scissors', 'scissors') == 'tie'
예제 #20
0
def test_rock_tie_rock():
    result = rps.evaluate_game('rock', 'rock')
    assert result == 'tie'
예제 #21
0
def test_scissors_beats_paper():
    result = rps.evaluate_game('scissors', 'paper')
    assert result == 'human'
예제 #22
0
def test_evaluate_game_computer_paper_win():
    assert rps.evaluate_game('rock', 'paper') == 'computer'
예제 #23
0
def test_rock_and_rock_is_a_tie():
    result = rps.evaluate_game('rock', 'rock')
    assert result == 'tie'
예제 #24
0
def test_evaluate_game_computer_rock_win():
    assert rps.evaluate_game('scissors', 'rock') == 'computer'
예제 #25
0
def test_paper_beats_rock():
    result = rps.evaluate_game('paper', 'rock')
    assert result == 'human'
예제 #26
0
def test_evaluate_game_computer_sciss_win():
    assert rps.evaluate_game('paper', 'scissors') == 'computer'
예제 #27
0
def test_rock_beats_scissors():
    result = rps.evaluate_game('rock', 'scissors')
    assert result == 'human'
예제 #28
0
def test_evaluate_game_human_paper_win():
    assert rps.evaluate_game('paper', 'rock') == 'human'
예제 #29
0
def test_scissors_beats_paper():
    result = rps.evaluate_game('paper', 'scissors')
    assert result == 'computer'
예제 #30
0
def test_game_returns_tie():
    assert rps.evaluate_game('rock', 'rock') == "tie"
    assert rps.evaluate_game('paper', 'paper') == "tie"
    assert rps.evaluate_game('scissors', 'scissors') == "tie"