aboutsummaryrefslogtreecommitdiff
path: root/core/metaprogramming.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-21 13:56:25 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-21 13:56:25 -0800
commitfa967247daae4fec8c42efe73fd16c615b4fb7d5 (patch)
tree441712eef0663fb28c3ee0063ef184e149a4c1e2 /core/metaprogramming.nom
parent2bbc035f5dcc3ecd62724b9d1de0e7e3ea902379 (diff)
Fixed tests to work better with different syntax versions.
Diffstat (limited to 'core/metaprogramming.nom')
-rw-r--r--core/metaprogramming.nom7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom
index 67219ac..0223e17 100644
--- a/core/metaprogramming.nom
+++ b/core/metaprogramming.nom
@@ -370,9 +370,10 @@ externally (type of %) means:
test:
assume ((run "return (2 + 99)") == 101)
- external %passed = (no)
- run "external %passed = (yes)"
- assume %passed
+ %x = 0
+ externally (set to %) means: external %x = %
+ run "set to 1"
+ assume %x == 1
assume (run \(return \(\(5) + \(5)))) == 10
(run %nomsu_code) compiles to "run_1_in(\(%nomsu_code as lua expr), _ENV)"
[compile %block, compiled %block, %block compiled] all compile to "\