rpn/test/01-mode.txt

47 lines
503 B
Text

## MODE
default erase
# std (1)
erase
std
-> stack size should be 0
-> error should be 0
erase
# std (2)
1 3 /
-> stack should be 0.333333333333333333333333333333333333334
erase
# fix (1)
10 fix
1
-> stack should be 1.0000000000
erase
# fix (2)
1 4 fix
-> stack should be 1.0000
erase
# fix (3)
1 fix
-> error should be 4
erase
# sci (1)
1 12 sci
-> stack should be 1.000000000000e+00
erase
# sci (2)
1 2 sci
-> stack should be 1.00e+00
erase
# sci (3)
1 sci
-> error should be 4
erase
default