make tests more robust; tests should be deterministic, no randomize() calls in tests

This commit is contained in:
Araq 2019-01-13 13:54:44 +01:00
commit 796432ff94
3 changed files with 16 additions and 14 deletions

View file

@ -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!")