rpn/test/02-general.txt

44 lines
539 B
Text

## GENERAL
default erase
# version
version
-> stack size should be 1
erase
uname
-> stack size should be 1
erase
# type (1)
1 type
-> stack should be 1, 'number'
erase
# type (2)
"hey" type
-> stack should be "hey", 'string'
erase
# type (3)
<< -> n << n >> >> type
-> stack should be << -> n << n >> >>, 'program'
erase
# type (4)
(1,2) type
-> stack should be (1,2)), 'complex'
erase
# default
2 sci 1
-> stack should be 1.00e+00
default
-> stack should be 1
erase
# nop
nop
-> stack size should be 0
-> error should be 0
erase