2018-05-22 09:23:18 +03:00
|
|
|
(load "Test.carp")
|
|
|
|
|
|
|
|
(use-all Random Test)
|
|
|
|
|
2018-11-07 18:11:38 +03:00
|
|
|
(deftest test
|
|
|
|
(assert-op test
|
|
|
|
0.536041
|
|
|
|
(do (Random.seed-from 33333.0) (Random.random))
|
|
|
|
"deterministic randomization with seed works as expected"
|
|
|
|
Double.approx))
|