mirror of
https://github.com/louisrubet/rpn
synced 2024-12-28 09:58:52 +01:00
#3: added string test
This commit is contained in:
parent
feffc80bcc
commit
a74eb3914c
1 changed files with 36 additions and 0 deletions
36
test/string.txt
Normal file
36
test/string.txt
Normal file
|
@ -0,0 +1,36 @@
|
|||
## STRING
|
||||
|
||||
default
|
||||
erase
|
||||
|
||||
# ->str on real (1)
|
||||
1
|
||||
->str
|
||||
-> stack should be "1"
|
||||
drop
|
||||
|
||||
# ->str on real (2)
|
||||
1.234
|
||||
25 std
|
||||
->str
|
||||
-> stack should be "1.234"
|
||||
drop
|
||||
|
||||
# ->str on real (3)
|
||||
1.234
|
||||
20 fix
|
||||
->str
|
||||
-> stack should be "1.23400000000000000000"
|
||||
drop
|
||||
|
||||
# ->str on symbol (1)
|
||||
toto
|
||||
->str
|
||||
-> stack should be "'toto'"
|
||||
drop
|
||||
|
||||
# ->str on symbol (2)
|
||||
'toto'
|
||||
->str
|
||||
-> stack should be "'toto'"
|
||||
drop
|
Loading…
Reference in a new issue