blob: f039dd652d20209ca846926462708bc0b6d3856c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(.using
[library
[lux (.full)
["_" test (.only Test)]
[abstract
[monad (.only do)]]
[math
["[0]" random (.only Random)]
[number
["n" nat]]]]]
[\\library
["[0]" /]])
(def: .public (spec (open "_#[0]") random)
(All (_ a) (-> (/.Hash a) (Random a) Test))
(do random.monad
[parameter random
subject random]
(_.coverage [/.Hash]
(if (_#= parameter subject)
(n.= (_#hash parameter) (_#hash subject))
true))))
|