Skip to content

Commit f44644c

Browse files
committed
mod for virus
1 parent e5bf829 commit f44644c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/virusTest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ def testMethod():
254254

255255
viruses = ["GGGG", "AAAA", "TTTT", "GGGG", "ATGC"] * 20
256256
n_trials = 100
257-
timesteps = 1000
257+
timesteps = 100
258258

259259
avg = lambda : sum(simulate(viruses[:], 0.1, 0.1, 0.5, 100, timesteps)) / timesteps
260260
avg_pop_size = sum(avg() for _ in range(n_trials)) / n_trials
261261

262-
if not 50 <= avg_pop_size <= 75:
263-
return False, f"expected an average population size of roughly 50 to 65, but found {avg_pop_size}"
262+
if not 85 <= avg_pop_size <= 90:
263+
return False, f"expected an average population size of roughly 85 to 90, but found {avg_pop_size}"
264264

265265
return True
266266

0 commit comments

Comments
 (0)