File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ static void test() {
108
108
data_structures::Stack<int > stack (5 );
109
109
110
110
// Test empty and full operations
111
- assert (stack.empty () == true );
112
- assert (stack.full () == false );
111
+ assert (stack.empty ());
112
+ assert (! stack.full ());
113
113
114
114
// Test pushing elements and checking topmost
115
115
stack.push (10 );
@@ -121,7 +121,7 @@ static void test() {
121
121
stack.push (30 );
122
122
stack.push (40 );
123
123
stack.push (50 );
124
- assert (stack.full () == true );
124
+ assert (stack.full ());
125
125
126
126
// Test stack overflow
127
127
try {
@@ -142,8 +142,8 @@ static void test() {
142
142
assert (stack.pop () == 20 );
143
143
assert (stack.pop () == 10 );
144
144
145
- assert (stack.empty () == true );
146
- assert (stack.full () == false );
145
+ assert (stack.empty ());
146
+ assert (! stack.full ());
147
147
148
148
// Test stack underflow
149
149
try {
You can’t perform that action at this time.
0 commit comments