mirror of
https://github.com/louisrubet/rpn
synced 2025-02-06 08:46:31 +01:00
#3: added string test
This commit is contained in:
parent
102073afe3
commit
ad6e5f598a
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…
Add table
Reference in a new issue