diff options
author | Marius Kintel <marius@kintel.net> | 2013-06-13 05:26:36 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-06-13 05:26:36 (GMT) |
commit | 80d81d9b76f92d5fa813ca60503d53bc239d8777 (patch) | |
tree | 381b58f4164d5bcc38e9168a2319225fdaae4136 /tests/regression/echotest | |
parent | ee5b6dfa8ba52a167f883cbdf9831c0c084c677a (diff) |
Added scope and reassignment tests
Diffstat (limited to 'tests/regression/echotest')
3 files changed, 4 insertions, 1 deletions
diff --git a/tests/regression/echotest/value-reassignment-tests-expected.txt b/tests/regression/echotest/value-reassignment-tests-expected.txt index 05a6741..fc7b7b1 100644 --- a/tests/regression/echotest/value-reassignment-tests-expected.txt +++ b/tests/regression/echotest/value-reassignment-tests-expected.txt @@ -1 +1 @@ -ECHO: 4 +ECHO: 4, 2 diff --git a/tests/regression/echotest/value-reassignment-tests2-expected.txt b/tests/regression/echotest/value-reassignment-tests2-expected.txt new file mode 100644 index 0000000..99b37a2 --- /dev/null +++ b/tests/regression/echotest/value-reassignment-tests2-expected.txt @@ -0,0 +1 @@ +ECHO: 3, 2 diff --git a/tests/regression/echotest/variable-scope-tests-expected.txt b/tests/regression/echotest/variable-scope-tests-expected.txt index 92db05d..5994778 100644 --- a/tests/regression/echotest/variable-scope-tests-expected.txt +++ b/tests/regression/echotest/variable-scope-tests-expected.txt @@ -14,3 +14,5 @@ ECHO: undef ECHO: 5 ECHO: "undeclared variable can still be passed and used" ECHO: 6 +ECHO: "attempt to assign from a not-yet-defined variable which also exists globally" +ECHO: 5, 1 |