Beispiel #1
0
 def test_coin_toss_returns_float(self):
     result = coin_toss.do_many_times(100, 100)
     assert type(result) == float
     assert 2.8 < result < 3.2
Beispiel #2
0
 def test_coin_toss_final_result(self):
     result = coin_toss.do_many_times(100, 100)
     assert 3.0 == round(result, 1)