mirror of
https://github.com/louisrubet/rpn
synced 2024-12-29 10:23:59 +01:00
48 lines
449 B
Markdown
48 lines
449 B
Markdown
|
# TEST the test framwork
|
||
|
|
||
|
`default del`
|
||
|
|
||
|
## testing the stack size 1
|
||
|
|
||
|
-> stack size should be 0
|
||
|
|
||
|
## testing the stack size 2
|
||
|
|
||
|
`1`
|
||
|
|
||
|
-> stack size should be 1
|
||
|
|
||
|
`del`
|
||
|
|
||
|
-> stack size should be 0
|
||
|
|
||
|
## testing the stack size 3
|
||
|
|
||
|
`1 2 3 4 5`
|
||
|
|
||
|
-> stack size should be 5
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## testing stack
|
||
|
|
||
|
`1 2 3`
|
||
|
|
||
|
-> stack should be 1, 2, 3
|
||
|
|
||
|
`del`
|
||
|
|
||
|
-> stack should be
|
||
|
|
||
|
## testing error 1
|
||
|
|
||
|
`del`
|
||
|
|
||
|
-> error should be 0
|
||
|
|
||
|
## testing error 2
|
||
|
|
||
|
`drop`
|
||
|
|
||
|
-> error should be 2
|