diff options
author | Eduardo Julian | 2021-01-09 12:58:50 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-01-09 12:58:50 -0400 |
commit | 706ce9e4916b65c4df5101bd3cc1b4da3b2057af (patch) | |
tree | fe3f3f6b8d6c6bc5b23045a3113a4f93e6f9b04c /stdlib/source/test/aedifex/artifact | |
parent | 1ce30d50abaa330ab2125b110e245de6deda27c7 (diff) |
Turned I64 and variant creation functions into constructors for JS.
Diffstat (limited to 'stdlib/source/test/aedifex/artifact')
-rw-r--r-- | stdlib/source/test/aedifex/artifact/value.lux | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/stdlib/source/test/aedifex/artifact/value.lux b/stdlib/source/test/aedifex/artifact/value.lux new file mode 100644 index 000000000..10e9016b1 --- /dev/null +++ b/stdlib/source/test/aedifex/artifact/value.lux @@ -0,0 +1,38 @@ +(.module: + [lux #* + ["_" test (#+ Test)] + [abstract + [monad (#+ do)] + {[0 #spec] + [/ + ["$." equivalence]]}] + [control + ["." try ("#\." functor)] + [parser + ["<.>" text]]] + [math + ["." random (#+ Random)] + [number + ["n" nat] + ["i" int]]] + [time + ["." instant]]] + {#program + ["." /]}) + +(def: #export random + (Random /.Value) + ($_ random.and + (random.ascii/alpha 5) + random.instant + random.nat + )) + +(def: #export test + Test + (<| (_.covering /._) + (_.for [/.Build /.Value]) + ($_ _.and + (_.for [/.equivalence] + ($equivalence.spec /.equivalence ..random)) + ))) |