Exemplo n.º 1
0
 def test_rps_pvs(self):
     return_value = main.rps("username_a", "paper", "username_b",
                             "scissors")
     self.assertEqual(return_value, "username_b")
Exemplo n.º 2
0
 def test_rps_rvp(self):
     return_value = main.rps("username_a", "rock", "username_b", "paper")
     self.assertEqual(return_value, "username_b")
Exemplo n.º 3
0
def test_number_of_trials():
    players = ["源静香", "野比のび太"]
    results = rps(tuple(Player(player) for player in players), 100)
    assert len(results) == 100