rpn/test/02-general.txt

50 lines
525 B
Text
Raw Normal View History

2017-05-02 10:55:12 +02:00
## GENERAL
default del
2017-05-02 10:55:12 +02:00
# version
version
2017-05-13 12:08:41 +02:00
-> stack size should be 1
del
2017-05-02 10:55:12 +02:00
uname
-> stack size should be 1
del
2017-05-02 10:55:12 +02:00
# type (1)
1 type
-> stack should be "number"
del
2017-05-02 10:55:12 +02:00
# type (2)
"hey" type
-> stack should be "string"
del
2017-05-02 10:55:12 +02:00
# type (3)
<< -> n << n >> >> type
-> stack should be "program"
del
2017-05-13 12:08:41 +02:00
# type (4)
(1,2) type
-> stack should be "complex"
del
# type (5)
type
-> error should be 2
del
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
del
2017-05-31 09:54:41 +02:00
# nop
nop
-> stack size should be 0
-> error should be 0
del