We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc7f16a commit 7e75cf3Copy full SHA for 7e75cf3
src/test/java/com/thealgorithms/datastructures/stacks/NodeStackTest.java
@@ -184,9 +184,9 @@ void testDifferentDataTypes() {
184
assertEquals('Z', charStack.peek(), "Should handle Character values");
185
186
// Test with Boolean
187
- booleanStack.push(true);
188
- booleanStack.push(false);
189
- assertEquals(false, booleanStack.peek(), "Should handle Boolean values");
+ booleanStack.push(Boolean.TRUE);
+ booleanStack.push(Boolean.FALSE);
+ assertEquals(Boolean.FALSE, booleanStack.peek(), "Should handle Boolean values");
190
}
191
192
@Test
0 commit comments