diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-14 23:25:05 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-14 23:25:34 -0700 |
| commit | b12744d831c4158671fc22401590eaac00f7c141 (patch) | |
| tree | 203b80de68d89c7333172337f8def46ba11294d3 /tests/scopes.nom | |
| parent | 49f1eb3d08caf7605046373b7b3a001f28aa8aab (diff) | |
Some cleanup and fixes. Simplifying a lot of code, and extending the
flexibility of scoping. Redesigned Object system too.
Diffstat (limited to 'tests/scopes.nom')
| -rw-r--r-- | tests/scopes.nom | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/tests/scopes.nom b/tests/scopes.nom index d3a2eb9..b9d1f4f 100644 --- a/tests/scopes.nom +++ b/tests/scopes.nom @@ -1,25 +1,16 @@ use "core" -using - %x <- 99 -..do - assume: %x = 99 +%x <- "outer" +with local %x + %x <- "inner" + assume: %x = "inner" +assume: %x = "outer" -using - action [foo] - return 99 - -..do - assume: (foo) = 99 +action [foo] "outer foo" +with local (foo) + action [foo] "inner foo" + assume: (foo) = "inner foo" +assume: (foo) = "outer foo" -action [baz] - return "outer" - -# - do - local action [baz] - return "inner" - assume: (baz) = "inner" - assume: (baz) = "outer" say "Scopes test passed." |
