aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/world/file.lux
blob: adac8bfeb9726c81cce1c64e12ad2431d81fe8d4 (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
(.module:
  [library
   [lux "*"
    ["_" test {"+" Test}]
    [abstract
     [monad {"+" do}]]
    [control
     ["[0]" io]]
    [math
     ["[0]" random]]]]
  ["[0]" / "_"
   ["[1][0]" watch]]
  [\\library
   ["[0]" /]]
  [\\specification
   ["$[0]" /]])

(def: .public test
  Test
  (<| (_.covering /._)
      (do [! random.monad]
        [/ (random.ascii/upper 1)]
        ($_ _.and
            (_.for [/.mock]
                   ($/.spec (io.io (/.mock /))))
            
            /watch.test
            ))))