aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/tool/compiler/meta/archive/artifact/category.lux
blob: 8f31cca51c055bc1a3ad521de4e782c3aa013af0 (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
(.using
 [library
  [lux "*"
   ["_" test {"+" Test}]
   [abstract
    [\\specification
     ["$[0]" equivalence]]]
   [math
    ["[0]" random {"+" Random} ("[1]#[0]" monad)]]]]
 [\\library
  ["[0]" /]])

(def: .public random
  (Random /.Category)
  ($_ random.or
      (random#in [])
      (random.ascii/lower 1)
      (random.ascii/lower 2)
      (random.ascii/lower 3)
      (random.ascii/lower 4)
      (random.ascii/lower 5)
      (random.ascii/lower 6)
      ))

(def: .public test
  Test
  (<| (_.covering /._)
      (_.for [/.Category])
      ($_ _.and
          (_.for [/.equivalence]
                 ($equivalence.spec /.equivalence ..random))
          )))