rpn/test/005-test-framework.md

48 lines
449 B
Markdown
Raw Normal View History

2022-02-12 19:11:22 +01:00
# 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