aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/meta/configuration.lux
diff options
context:
space:
mode:
authorEduardo Julian2022-03-14 06:14:57 -0400
committerEduardo Julian2022-03-14 06:14:57 -0400
commit4965597043aca57a05760113f1851e96dad1eaf8 (patch)
tree8126d3e6394e38bc52918eea95a67546350bb95e /stdlib/source/test/lux/meta/configuration.lux
parentcfd438517a46e025b15345e3570b02f5ea6165c0 (diff)
Leaner syntax for the "for" macro.
Diffstat (limited to 'stdlib/source/test/lux/meta/configuration.lux')
-rw-r--r--stdlib/source/test/lux/meta/configuration.lux33
1 files changed, 20 insertions, 13 deletions
diff --git a/stdlib/source/test/lux/meta/configuration.lux b/stdlib/source/test/lux/meta/configuration.lux
index c96a5593d..fc300a01d 100644
--- a/stdlib/source/test/lux/meta/configuration.lux
+++ b/stdlib/source/test/lux/meta/configuration.lux
@@ -66,25 +66,32 @@
(try#each (# /.equivalence = expected))
(try.else false)))
(_.cover [/.for]
- (and (and (/.for [["left" "<<<"
- "right" ">>>"]
- true]
+ (and (and (/.for ["left" "<<<"
+ "right" ">>>"]
+ true
+ ... else
false)
- (/.for [["left" "<<<"]
- true]
+ (/.for ["left" "<<<"]
+ true
+ ... else
false)
- (/.for [["right" ">>>"]
- true]
+ (/.for ["right" ">>>"]
+ true
+ ... else
false))
- (and (/.for [["yolo" ""]
- false]
+ (and (/.for ["yolo" ""]
+ false
+ ... else
true)
- (/.for [["left" "yolo"]
- false]
+ (/.for ["left" "yolo"]
+ false
+ ... else
true))))
(_.cover [/.invalid]
(and (text.contains? (the exception.#label /.invalid)
- (..failure (/.for [])))
+ (..failure (/.for)))
(text.contains? (the exception.#label /.invalid)
- (..failure (/.for [["left" "yolo"] false])))))
+ (..failure (/.for ["left" "yolo"]
+ ... else
+ false)))))
))))