From 5dbf134346424602b0104d1f749c1a9eac6f21af Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 12 Jan 2021 17:31:48 -0400 Subject: Compiler now shows suggestions when encountering unknown definitions. --- stdlib/source/test/aedifex/artifact/build.lux | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 stdlib/source/test/aedifex/artifact/build.lux (limited to 'stdlib/source/test/aedifex/artifact/build.lux') diff --git a/stdlib/source/test/aedifex/artifact/build.lux b/stdlib/source/test/aedifex/artifact/build.lux new file mode 100644 index 000000000..d0920b44c --- /dev/null +++ b/stdlib/source/test/aedifex/artifact/build.lux @@ -0,0 +1,34 @@ +(.module: + [lux #* + ["_" test (#+ Test)] + [abstract + [monad (#+ do)] + {[0 #spec] + [/ + ["$." equivalence]]}] + [control + ["." try ("#\." functor)] + [parser + ["<.>" xml]]] + [math + ["." random]]] + {#program + ["." /]}) + +(def: #export test + Test + (<| (_.covering /._) + (_.for [/.Build] + ($_ _.and + (_.for [/.equivalence] + ($equivalence.spec /.equivalence random.nat)) + + (do random.monad + [expected random.nat] + (_.cover [/.format /.parser] + (|> expected + /.format + (.run /.parser) + (try\map (\ /.equivalence = expected)) + (try.default false)))) + )))) -- cgit v1.2.3