Skip to content

Commit 7e75cf3

Browse files
committed
testing: fix type
1 parent fc7f16a commit 7e75cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/thealgorithms/datastructures/stacks/NodeStackTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ void testDifferentDataTypes() {
184184
assertEquals('Z', charStack.peek(), "Should handle Character values");
185185

186186
// Test with Boolean
187-
booleanStack.push(true);
188-
booleanStack.push(false);
189-
assertEquals(false, booleanStack.peek(), "Should handle Boolean values");
187+
booleanStack.push(Boolean.TRUE);
188+
booleanStack.push(Boolean.FALSE);
189+
assertEquals(Boolean.FALSE, booleanStack.peek(), "Should handle Boolean values");
190190
}
191191

192192
@Test

0 commit comments

Comments
 (0)