diff options
author | alon@honor <none@none> | 2010-09-14 20:17:18 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-14 20:17:18 -0700 |
commit | 14711e75215a3c3841dc82d34b9c8a6a0768112e (patch) | |
tree | a961190d2c6f290b8f6b2b10931df1d24854bb38 /tests/sauer/command.cpp | |
parent | 0dd0f40a7a2c2fdf5e8344d492b3575fab8268a6 (diff) |
additional sauer testing that can now pass
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; } |