rpn/test/02-general.txt

50 lines
545 B
Text
Raw Normal View History

2017-05-02 10:55:12 +02:00
## GENERAL
default erase
2017-05-02 10:55:12 +02:00
# version
version
2017-05-13 12:08:41 +02:00
-> stack size should be 1
erase
2017-05-02 10:55:12 +02:00
uname
-> stack size should be 1
2017-05-02 10:55:12 +02:00
erase
# type (1)
1 type
-> stack should be "number"
2017-05-12 17:27:40 +02:00
erase
2017-05-02 10:55:12 +02:00
# type (2)
"hey" type
-> stack should be "string"
2017-05-12 17:27:40 +02:00
erase
2017-05-02 10:55:12 +02:00
# type (3)
<< -> n << n >> >> type
-> stack should be "program"
2017-05-12 17:27:40 +02:00
erase
2017-05-13 12:08:41 +02:00
# type (4)
(1,2) type
-> stack should be "complex"
erase
# type (5)
type
-> error should be 2
erase
2017-05-13 12:08:41 +02:00
# default
2 sci 1
2017-05-13 12:08:41 +02:00
-> stack should be 1.00e+00
default
-> stack should be 1
erase
2017-05-31 09:54:41 +02:00
# nop
nop
-> stack size should be 0
-> error should be 0
erase