Issue #197 has been solved
This commit is contained in:
parent
1852c0548c
commit
214b727a75
1 changed files with 6 additions and 8 deletions
|
|
@ -25,14 +25,12 @@ suite "random int":
|
||||||
check rand >= 100
|
check rand >= 100
|
||||||
|
|
||||||
suite "random float":
|
suite "random float":
|
||||||
# Enable this once #197 has been resolved
|
test "there might be some randomness":
|
||||||
# test "there might be some randomness":
|
var set = initSet[float](128)
|
||||||
# var set = initSet[float](128)
|
randomize()
|
||||||
# for i in 1..10:
|
for i in 1..100:
|
||||||
# for j in 1..10:
|
incl(set, random(1.0))
|
||||||
# randomize()
|
check len(set) == 100
|
||||||
# incl(set, random(1.0))
|
|
||||||
# check len(set) == 100
|
|
||||||
test "single number bounds work":
|
test "single number bounds work":
|
||||||
randomize()
|
randomize()
|
||||||
var rand: float
|
var rand: float
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue