make tests more robust; tests should be deterministic, no randomize() calls in tests
This commit is contained in:
parent
40115cd645
commit
796432ff94
3 changed files with 16 additions and 14 deletions
|
|
@ -50,7 +50,6 @@ test "unittest multiple requires":
|
|||
import math, random
|
||||
from strutils import parseInt
|
||||
proc defectiveRobot() =
|
||||
randomize()
|
||||
case random(1..4)
|
||||
of 1: raise newException(OSError, "CANNOT COMPUTE!")
|
||||
of 2: discard parseInt("Hello World!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue