aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/tool/compiler/meta/archive/artifact.lux
blob: e87df01d3fca23891c1f8b985e304f129217b4b6 (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}]]]]
 ["[0]" / "_"
  ["[1][0]" category]]
 [\\library
  ["[0]" /]])

(def: .public random
  (Random /.Artifact)
  (all random.and
       random.nat
       /category.random
       random.bit
       ))

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

           /category.test
           )))