rpn/test/02-general.txt

49 lines
545 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 "number"
erase
# type (2)
"hey" type
-> stack should be "string"
erase
# type (3)
<< -> n << n >> >> type
-> stack should be "program"
erase
# type (4)
(1,2) type
-> stack should be "complex"
erase
# type (5)
type
-> error should be 2
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