diff --git a/test/entry.txt b/test/entry.txt index e4300c6..7631821 100644 --- a/test/entry.txt +++ b/test/entry.txt @@ -46,24 +46,6 @@ nan @nan@ -> stack should be inf, inf, inf, inf, -inf, -inf, nan, nan -# binary decimal -erase -#123d --> stack size should be 1 --> stack should be 123 d - -# binary hex -erase -#123h --> stack size should be 1 --> stack should be 291 d - -# binary binary -erase -#1101b --> stack size should be 1 --> stack should be 13 d - # symbol erase 'test' diff --git a/test/rpn-test.txt b/test/rpn-test.txt index 8f5d8a1..57b6913 100644 --- a/test/rpn-test.txt +++ b/test/rpn-test.txt @@ -1,4 +1,4 @@ -## 2 ## TEST +## TESTS # and (1) and -> error should be 2 diff --git a/test/stack.txt b/test/stack.txt index 951f00c..7360c29 100644 --- a/test/stack.txt +++ b/test/stack.txt @@ -43,18 +43,24 @@ drop2 drop2 # test rot 1 2 3 rot -> stack size should be 3 --> stack should be 2, 3 ,1 +-> stack should be 2, 3, 1 +erase # test depth +1 2 3 depth -> stack size should be 4 --> stack should be 3, 2, 3 ,1 -drop2 drop2 +-> stack should be 1, 2, 3, 3 +erase # test pick 1 2 3 4 2 pick -> stack size should be 5 --> stack should be 2, 1, 2, 3, 4 +-> stack should be 1, 2, 3, 4, 3 +0 pick +-> error should be 4 +7 pick +-> error should be 4 # test erase erase