diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2012-09-08 15:16:56 -0500 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2012-09-08 15:16:56 -0500 |
commit | 214b727a7525924f37fc7c917c34beae394f9ef1 (patch) | |
tree | 433c106b96c6aa127dbb00f846fb8cf0283a8661 /tests/run | |
parent | 1852c0548c23974e1d5f34f2e9d49ff63e7bc267 (diff) | |
download | Nim-214b727a7525924f37fc7c917c34beae394f9ef1.tar.gz |
Issue #197 has been solved
Diffstat (limited to 'tests/run')
-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 |