From befa21cea76282f8cd3509e0a7da1bdffd353101 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 9 Oct 2020 23:11:38 -0400 Subject: Mandatory long names for JVM imports, instead of having "long" be optional and short be default. --- stdlib/source/test/aedifex/artifact.lux | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 stdlib/source/test/aedifex/artifact.lux (limited to 'stdlib/source/test/aedifex/artifact.lux') 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)) + )))) -- cgit v1.2.3