mirror of
https://github.com/louisrubet/rpn
synced 2024-12-28 09:58:52 +01:00
#3: testing general functions
This commit is contained in:
parent
2e235c1e17
commit
3f79bfee1e
1 changed files with 55 additions and 0 deletions
55
test/general.txt
Normal file
55
test/general.txt
Normal file
|
@ -0,0 +1,55 @@
|
|||
## GENERAL
|
||||
|
||||
# std
|
||||
erase
|
||||
1
|
||||
10 std
|
||||
-> stack should be 1
|
||||
|
||||
3 /
|
||||
-> stack should be 0.3333333333
|
||||
|
||||
3 std
|
||||
-> stack should be 0.333
|
||||
|
||||
# fix
|
||||
drop
|
||||
10 fix
|
||||
1
|
||||
-> stack should be 1.0000000000
|
||||
|
||||
4 fix
|
||||
-> stack should be 1.0000
|
||||
|
||||
# sci
|
||||
12 sci
|
||||
-> stack should be 1.000000000000e+00
|
||||
|
||||
2 sci
|
||||
-> stack should be 1.00e+00
|
||||
drop
|
||||
|
||||
# version
|
||||
version
|
||||
->stack size should be 1
|
||||
|
||||
uname
|
||||
->stack size should be 2
|
||||
|
||||
erase
|
||||
|
||||
# type
|
||||
1
|
||||
type
|
||||
-> stack should be 'number'
|
||||
drop
|
||||
|
||||
"hey"
|
||||
type
|
||||
-> stack should be 'string'
|
||||
drop
|
||||
|
||||
<< -> n << n >> >>
|
||||
type
|
||||
-> stack should be 'program'
|
||||
drop
|
Loading…
Reference in a new issue