rpn/test/02-general.txt

45 lines
539 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
2017-05-12 17:27:40 +02:00
-> stack should be 1, 'number'
erase
2017-05-02 10:55:12 +02:00
# type (2)
"hey" type
2017-05-12 17:27:40 +02:00
-> stack should be "hey", 'string'
erase
2017-05-02 10:55:12 +02:00
# type (3)
<< -> n << n >> >> type
-> stack should be << -> n << n >> >>, '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 (1,2)), 'complex'
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