Added scoping test.

This commit is contained in:
Bruce Hill 2018-05-10 22:50:45 -07:00
parent 4126589afe
commit ca1cfb5650

25
tests/scopes.nom Normal file
View File

@ -0,0 +1,25 @@
use "core"
using
%x <- 99
..do
assume: %x = 99
using
action [foo]
return 99
..do
assume: (foo) = 99
action [baz]
return "outer"
using
action [baz]
return "inner"
..do
assume: (baz) = "inner"
assume: (baz) = "outer"
say "Scopes test passed."