mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-05 04:44:12 +03:00
11 lines
258 B
Plaintext
11 lines
258 B
Plaintext
(load "Test.carp")
|
|
|
|
(use-all Random Test)
|
|
|
|
(deftest test
|
|
(assert-op test
|
|
0.536041
|
|
(do (Random.seed-from 33333.0) (Random.random))
|
|
"deterministic randomization with seed works as expected"
|
|
Double.approx))
|