blob: 0e9546c0450250596a35bc130a09a348f1c43e25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
(.module:
[library
[lux #*
["_" test (#+ Test)]
[abstract
[monad (#+ do)]]
[control
[parser
["<.>" code]]]
[math
["." random]
[number
["n" nat]]]]]
[\\library
["." /]]
["." / #_
["#." annotations]
["#." check]
["#." declaration]
["#." definition]
["#." export]
["#." input]
["#." type #_
["#/." variable]]])
(/.syntax: (+/3 [a <code>.any
b <code>.any
c <code>.any])
(in (list (` ($_ n.+ (~ a) (~ b) (~ c))))))
(def: .public test
Test
(<| (_.covering /._)
($_ _.and
(do random.monad
[x random.nat
y random.nat
z random.nat]
(_.cover [/.syntax:]
(n.= ($_ n.+ x y z)
(+/3 x y z))))
/annotations.test
/check.test
/declaration.test
/definition.test
/export.test
/input.test
/type/variable.test
)))
|