aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux.lux
diff options
context:
space:
mode:
authorEduardo Julian2022-06-12 00:38:20 -0400
committerEduardo Julian2022-06-12 00:38:20 -0400
commitb48ea68a83d01903554c7696c77eedaaf1035680 (patch)
treec342d8094c3158de16526f874ca9624418cd2dd2 /stdlib/source/test/lux.lux
parent7abf2d0ac55c229a8793bbff31f132596ffcb275 (diff)
De-sigil-ification: suffix : [Part 3]
Diffstat (limited to 'stdlib/source/test/lux.lux')
-rw-r--r--stdlib/source/test/lux.lux20
1 files changed, 11 insertions, 9 deletions
diff --git a/stdlib/source/test/lux.lux b/stdlib/source/test/lux.lux
index 056d93079..0d393c2c2 100644
--- a/stdlib/source/test/lux.lux
+++ b/stdlib/source/test/lux.lux
@@ -429,7 +429,7 @@
<m2/1> (template.text [<module/2> "/" <module/1>])
<m0/1/2> (template.text [<module/0> "/" <module/1> "/" <module/2>])
<open/0> (template.text [<module/0> "#[0]"])]
- (and (~~ (template [<input> <module> <referrals>]
+ (and (~~ (with_template [<input> <module> <referrals>]
[(with_expansions [<input>' (macro.final <input>)]
(let [scenario (is (-> Any Bit)
(function (_ _)
@@ -657,14 +657,15 @@
(n.= (n.* (++ expected_left) (-- expected_right))
(actual [expected_left expected_right])))))))
-(/.template: (!n/+ <left> <right>)
- [(n.+ <left> <right>)])
+(def: !n/+
+ (/.template (_ <left> <right>)
+ [(n.+ <left> <right>)]))
(def: for_template
Test
(`` (all _.and
- (_.coverage [/.template]
- (let [bits (list (~~ (/.template [_]
+ (_.coverage [/.with_template]
+ (let [bits (list (~~ (/.with_template [_]
[true]
[0] [1] [2]
@@ -674,7 +675,7 @@
(do random.monad
[left random.nat
right random.nat]
- (_.coverage [/.template:]
+ (_.coverage [/.template]
(n.= (n.+ left right)
(!n/+ left right))))
)))
@@ -943,9 +944,10 @@
[#left l
#right r]))
-(template: (!pair <left> <right>)
- [[..#left <left>
- ..#right <right>]])
+(def: !pair
+ (template (_ <left> <right>)
+ [[..#left <left>
+ ..#right <right>]]))
(def: for_case
Test