rpn/test/02-general.txt

49 lines
525 B
Text

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