blob: 6a1ac503a3763b0c5d45f90572417eb596630b4b (
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
|
(.module:
[lux #*
["_" test (#+ Test)]
[abstract
[monad (#+ do)]]
[data
["." text]]
[math
["." random]]]
["." / #_
["#." artifact]
["#." snapshot]
[//
["@." artifact]]]
{#program
["." /]})
(def: #export test
Test
(<| (_.covering /._)
($_ _.and
(<| (_.for [/.file])
(do random.monad
[sample @artifact.random]
($_ _.and
(_.cover [/.for-project]
(text.ends-with? /.file (/.for-project sample)))
(_.cover [/.for-version]
(text.ends-with? /.file (/.for-version sample)))
)))
/artifact.test
/snapshot.test
)))
|