aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/aedifex/artifact.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-10-09 23:11:38 -0400
committerEduardo Julian2020-10-09 23:11:38 -0400
commitbefa21cea76282f8cd3509e0a7da1bdffd353101 (patch)
tree9f671c8a86ca43bcccb8105a668a271e72ef06ea /stdlib/source/test/aedifex/artifact.lux
parentbae39f32cddb816a6123697269c20dbf4a65ac19 (diff)
Mandatory long names for JVM imports, instead of having "long" be optional and short be default.
Diffstat (limited to 'stdlib/source/test/aedifex/artifact.lux')
-rw-r--r--stdlib/source/test/aedifex/artifact.lux30
1 files changed, 30 insertions, 0 deletions
diff --git a/stdlib/source/test/aedifex/artifact.lux b/stdlib/source/test/aedifex/artifact.lux
new file mode 100644
index 000000000..1ba27d0b6
--- /dev/null
+++ b/stdlib/source/test/aedifex/artifact.lux
@@ -0,0 +1,30 @@
+(.module:
+ [lux #*
+ ["_" test (#+ Test)]
+ [abstract
+ [monad (#+ do)]
+ [hash (#+ Hash)]
+ {[0 #spec]
+ [/
+ ["$." equivalence]]}]
+ [math
+ ["." random (#+ Random)]]]
+ {#program
+ ["." /]})
+
+(def: #export random
+ (Random /.Artifact)
+ ($_ random.and
+ (random.ascii/alpha 1)
+ (random.ascii/alpha 1)
+ (random.ascii/alpha 1)))
+
+(def: #export test
+ Test
+ (<| (_.covering /._)
+ (_.with-cover [/.Group /.Name /.Version
+ /.Artifact]
+ ($_ _.and
+ (_.with-cover [/.equivalence]
+ ($equivalence.spec /.equivalence ..random))
+ ))))