-
Notifications
You must be signed in to change notification settings - Fork 1
/
c202-test.output
executable file
·54 lines (43 loc) · 1.36 KB
/
c202-test.output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
C202 - Stack Implemented Using an Array - Basic Tests
-----------------------------------------------------
[TEST01] Stack initialization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- BOTTOM [ ] TOP ---
[TEST02] Checking a state of the stack
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stackEmpty returned 'TRUE'
stackFull returned 'FALSE'
[TEST03] Pushing a first item 'A'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- BOTTOM [ A ] TOP ---
[TEST04] Checking a state of the stack again
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stackEmpty returned 'FALSE'
stackFull returned 'FALSE'
[TEST05] Reading and removing the top item
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stackTop returned 'A'
--- BOTTOM [ ] TOP ---
[TEST06] Pushing items from '0' to '7'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- BOTTOM [ 01234567 ] TOP ---
[TEST07] Checking a state of the stack
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stackEmpty returned 'FALSE'
stackFull returned 'TRUE'
[TEST08] Removing all items one by one
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stackTop returned '7'
stackTop returned '6'
stackTop returned '5'
stackTop returned '4'
stackTop returned '3'
stackTop returned '2'
stackTop returned '1'
stackTop returned '0'
--- BOTTOM [ ] TOP ---
[TEST09] Final check of the stack
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stackEmpty returned 'TRUE'
stackFull returned 'FALSE'
----- C202 - The End of Basic Tests -----