aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/data.lux
blob: 5b49d61b3a96b69f2855d045b97467a2a0a8299c (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
(.module:
  [library
   [lux "*"
    ["_" test {"+" Test}]
    [abstract
     [monad {"+" do}]]
    [math
     ["[0]" random]]]]
  ["[0]" / "_"
   ["[1][0]" binary]
   ["[1][0]" bit]
   ["[1][0]" color
    ["[1]/[0]" named]]
   ["[1][0]" identity]
   ["[1][0]" product]
   ["[1][0]" sum]
   ["[1][0]" text]
   ["[1][0]" format "_"
    ["[1]/[0]" binary]
    ["[1]/[0]" json]
    ["[1]/[0]" tar]
    ["[1]/[0]" xml]]
   ["[1][0]" collection]])

... TODO: Get rid of this ASAP
(template: (!bundle body)
  [(: Test
      (do random.monad
        [_ (in [])]
        body))])

(def: format
  Test
  ($_ _.and
      /format/binary.test
      /format/json.test
      /format/tar.test
      /format/xml.test
      ))

(def: test/0
  Test
  ($_ _.and
      /binary.test
      /bit.test
      /color.test
      /color/named.test))

(def: test/1
  Test
  ($_ _.and
      /identity.test))

(def: test/2
  Test
  ($_ _.and
      /product.test
      /sum.test
      /text.test))

(def: .public test
  Test
  ... TODO: Inline ASAP
  ($_ _.and
      (!bundle test/0)
      (!bundle test/1)
      (!bundle test/2)
      (!bundle ..format)
      (!bundle /collection.test)
      ))