diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-18 01:27:56 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-18 01:28:17 -0700 |
| commit | d5cfaa37be9e278c44a25ef448a071390597306e (patch) | |
| tree | 7fbe78b5153bb9c761c283533943ab80da3a1844 /tests/scopes.nom | |
| parent | c7c657d38f999901225b33482ef3a15994526feb (diff) | |
Upgrading to version 2.3 (main change: "=" instead of "<-" for
assignment)
Diffstat (limited to 'tests/scopes.nom')
| -rw-r--r-- | tests/scopes.nom | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/scopes.nom b/tests/scopes.nom index ffda7f6..a882dcb 100644 --- a/tests/scopes.nom +++ b/tests/scopes.nom @@ -1,17 +1,15 @@ -#!/usr/bin/env nomsu -V1 +#!/usr/bin/env nomsu -V2.3.4.3 use "core" +%x = "outer" +with local %x: + %x = "inner" + assume (%x == "inner") -%x <- "outer" -with local %x - %x <- "inner" - assume: %x = "inner" -assume: %x = "outer" - +assume (%x == "outer") action [foo] "outer foo" -with local [action: foo] +with local [action (foo)]: action [foo] "inner foo" - assume: (foo) = "inner foo" -assume: (foo) = "outer foo" - + assume ((foo) == "inner foo") -say "Scopes test passed." +assume ((foo) == "outer foo") +say "Scopes test passed."
\ No newline at end of file |
