diff options
Diffstat (limited to 'tests/sauer/command.cpp')
-rw-r--r-- | tests/sauer/command.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/sauer/command.cpp b/tests/sauer/command.cpp index 7c39522f..0f9dc196 100644 --- a/tests/sauer/command.cpp +++ b/tests/sauer/command.cpp @@ -1406,12 +1406,19 @@ VARP(somevar, 0, 0, 1024); int main() { + printf("*\n"); execute("somevar 9"); execute("temp = (+ 22 $somevar)"); execute("if (> $temp 30) [ temp = (+ $temp 1) ] [ temp = (* $temp 2) ]"); execute("if (< $temp 30) [ temp = 0 ] [ temp = (+ $temp 1) ]"); - execute("echo [*Temp is] $temp"); - printf("%d*\n", getvar("somevar")); + execute("echo [Temp is] $temp"); + printf("%d\n", getvar("somevar")); + execute("x = 2"); + execute("push x 5"); + execute("push x 11"); + execute("pop x"); + execute("echo $x"); + printf("*\n"); return 0; } |