diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-09-08 19:38:16 +0200 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-09-08 19:38:32 +0200 |
commit | 8fe47981847f8c72aef7d39ddc1d945b3281d67d (patch) | |
tree | 6e584c19ca8e4eff4454c65cd8253b53ff5b5687 | |
parent | 769df8717c594c4a24acde6034f3bcd75aaafdf4 (diff) |
Add scope test file
-rw-r--r-- | scopetest.prn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scopetest.prn b/scopetest.prn new file mode 100644 index 0000000..c85596f --- /dev/null +++ b/scopetest.prn @@ -0,0 +1,21 @@ +@defun "localedit"{ + 2 "somevar" store + "should be 2: " print somevar print lf +} +@defun "globaledit"{ + 2 "somevar" gstore + "should be 2: " print somevar print lf +} +@defun "makex"{ + 42 "x" gstore + "stored " x + " in x" + print lf +} + +1 "somevar" store +"should be 1: " print somevar print lf +localedit +"should be 1: " print somevar print lf +globaledit +"should be 2: " print somevar print lf +makex +"globally, x = " x + print lf |