#3: completed some tests

This commit is contained in:
Louis Rubet 2017-05-02 17:06:08 +02:00
parent 9923cbe514
commit 600ec10e59
3 changed files with 11 additions and 23 deletions

View file

@ -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'

View file

@ -1,4 +1,4 @@
## 2 ## TEST
## TESTS
# and (1)
and
-> error should be 2

View file

@ -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