From 9bf21802006921aa3a1a0c195a07981aa8d6018c Mon Sep 17 00:00:00 2001 From: Louis Rubet Date: Sat, 20 May 2017 22:35:19 +0200 Subject: [PATCH] #3: test on branch --- test/branch.txt | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/test/branch.txt b/test/branch.txt index df50e4b..d71920f 100644 --- a/test/branch.txt +++ b/test/branch.txt @@ -35,6 +35,38 @@ erase -> stack should be 'KO' erase +# if then else end - error case (1) +if then end +-> error should be 2 + +# if then else end - error case (2) +0 if then +-> error should be 11 + +# if then else end - error case (3) +0 if end +-> error should be 11 + +# if then else end - error case (4) +0 if end +-> error should be 11 + +# if then else end - error case (5) +then +-> error should be 11 + +# if then else end - error case (6) +1 if +-> error should be 11 + +# if then else end - error case (7) +else +-> error should be 11 + +# if then else end - error case (8) +end +-> error should be 11 + # start next (1) 1 2 start 0 next -> stack should be 0, 0 @@ -86,7 +118,7 @@ erase erase # for step (1) -23 27 for i 1 step +23 27 for i i 1 step -> stack should be 23, 24, 25, 26, 27 erase @@ -107,5 +139,5 @@ erase # for step (5) 0 -1 for i i -0.25 step --> stack size should be 0, -0.25, -0.5, -0.75, -1 +-> stack size should be 0 erase