aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/aedifex/metadata.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-12-12 01:40:48 -0400
committerEduardo Julian2020-12-12 01:40:48 -0400
commit71ade9a07f08c0d61ebd70e64c2745f1ba33cb54 (patch)
tree736b881f4b1db0775211baa5df611b9e40abeac1 /stdlib/source/test/aedifex/metadata.lux
parentdff517cbdb9a1c80028782c62ad91c71ddb34909 (diff)
Removed several unnecessary imports.
Diffstat (limited to 'stdlib/source/test/aedifex/metadata.lux')
-rw-r--r--stdlib/source/test/aedifex/metadata.lux32
1 files changed, 32 insertions, 0 deletions
diff --git a/stdlib/source/test/aedifex/metadata.lux b/stdlib/source/test/aedifex/metadata.lux
new file mode 100644
index 000000000..5b8b47b00
--- /dev/null
+++ b/stdlib/source/test/aedifex/metadata.lux
@@ -0,0 +1,32 @@
+(.module:
+ [lux #*
+ ["_" test (#+ Test)]
+ [abstract
+ [monad (#+ do)]]
+ [data
+ ["." text]]
+ [math
+ ["." random]]]
+ ["." / #_
+ ["#." artifact]
+ [//
+ ["@." 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
+ )))