diff options
author | Eduardo Julian | 2021-01-12 17:31:48 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-01-12 17:31:48 -0400 |
commit | 5dbf134346424602b0104d1f749c1a9eac6f21af (patch) | |
tree | ac77441b9fcbc66a6f9ef1e5a55ccf0b1bcc996e /stdlib/source/test/aedifex/artifact | |
parent | 8aac0c573c29d2829242d66539a9e027d03ff8ec (diff) |
Compiler now shows suggestions when encountering unknown definitions.
Diffstat (limited to 'stdlib/source/test/aedifex/artifact')
-rw-r--r-- | stdlib/source/test/aedifex/artifact/build.lux | 34 |
1 files changed, 34 insertions, 0 deletions
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 + (<xml>.run /.parser) + (try\map (\ /.equivalence = expected)) + (try.default false)))) + )))) |