aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/tool/compiler/language/lux/phase/synthesis/variable.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/tool/compiler/language/lux/phase/synthesis/variable.lux19
1 files changed, 10 insertions, 9 deletions
diff --git a/stdlib/source/test/lux/tool/compiler/language/lux/phase/synthesis/variable.lux b/stdlib/source/test/lux/tool/compiler/language/lux/phase/synthesis/variable.lux
index 4f3d1de26..8d284b15f 100644
--- a/stdlib/source/test/lux/tool/compiler/language/lux/phase/synthesis/variable.lux
+++ b/stdlib/source/test/lux/tool/compiler/language/lux/phase/synthesis/variable.lux
@@ -27,13 +27,14 @@
[reference
["[0]" variable]]]]]])
-(template: (!expect <pattern> <value>)
- (case <value>
- <pattern>
- true
-
- _
- false))
+(def: !expect
+ (template (_ <pattern> <value>)
+ (case <value>
+ <pattern>
+ true
+
+ _
+ false)))
(type: Context
[#redundants Nat
@@ -42,7 +43,7 @@
(type: (Scenario a)
(-> Context (Random [a a])))
-(template [<name> <synthesis> <random>]
+(with_template [<name> <synthesis> <random>]
[(def: (<name> context)
(Scenario Synthesis)
(do [! random.monad]
@@ -178,7 +179,7 @@
{synthesis.#Seq {synthesis.#Pop}
{synthesis.#Then actual_then}}}])))
(all random.either
- (~~ (template [<tag> <random>]
+ (~~ (with_template [<tag> <random>]
[(do [! random.monad]
[test <random>
[expected_then actual_then] (scenario context)]