diff options
Diffstat (limited to 'tests/run/tmath.nim')
-rw-r--r-- | tests/run/tmath.nim | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/run/tmath.nim b/tests/run/tmath.nim index 65124306e..a86a3b84c 100644 --- a/tests/run/tmath.nim +++ b/tests/run/tmath.nim @@ -25,14 +25,12 @@ suite "random int": check rand >= 100 suite "random float": - # Enable this once #197 has been resolved - # test "there might be some randomness": - # var set = initSet[float](128) - # for i in 1..10: - # for j in 1..10: - # randomize() - # incl(set, random(1.0)) - # check len(set) == 100 + test "there might be some randomness": + var set = initSet[float](128) + randomize() + for i in 1..100: + incl(set, random(1.0)) + check len(set) == 100 test "single number bounds work": randomize() var rand: float |