File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/test/java/com/thealgorithms/datastructures/stacks Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
4
4
import static org .junit .jupiter .api .Assertions .assertFalse ;
5
- import static org .junit .jupiter .api .Assertions .assertNull ;
6
5
import static org .junit .jupiter .api .Assertions .assertThrows ;
7
6
import static org .junit .jupiter .api .Assertions .assertTrue ;
8
7
@@ -98,9 +97,9 @@ void testPushPopWithNull() {
98
97
stringStack .push (null );
99
98
100
99
assertEquals (3 , stringStack .size (), "Stack should contain 3 elements including nulls" );
101
- assertNull (stringStack .pop (), "Should pop null value" );
100
+ org . junit . jupiter . api . Assertions . assertNull (stringStack .pop (), "Should pop null value" );
102
101
assertEquals ("not null" , stringStack .pop (), "Should pop 'not null' value" );
103
- assertNull (stringStack .pop (), "Should pop null value" );
102
+ org . junit . jupiter . api . Assertions . assertNull (stringStack .pop (), "Should pop null value" );
104
103
assertTrue (stringStack .isEmpty (), "Stack should be empty after popping all elements" );
105
104
}
106
105
You can’t perform that action at this time.
0 commit comments