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 22
33import static org .junit .jupiter .api .Assertions .assertEquals ;
44import static org .junit .jupiter .api .Assertions .assertFalse ;
5- import static org .junit .jupiter .api .Assertions .assertNull ;
65import static org .junit .jupiter .api .Assertions .assertThrows ;
76import static org .junit .jupiter .api .Assertions .assertTrue ;
87
@@ -98,9 +97,9 @@ void testPushPopWithNull() {
9897 stringStack .push (null );
9998
10099 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" );
102101 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" );
104103 assertTrue (stringStack .isEmpty (), "Stack should be empty after popping all elements" );
105104 }
106105
You can’t perform that action at this time.
0 commit comments