Content-Length: 278610 | pFad | http://github.com/TheAlgorithms/Java/pull/6432/commits/72bc426bed299d738196e31dc6b52ed4f5fdc68b

CD testing: improve test coverage `NodeStackTest` by alxkm · Pull Request #6432 · TheAlgorithms/Java · GitHub
Skip to content

testing: improve test coverage NodeStackTest #6432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 25, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
testing: fix import
  • Loading branch information
alxkm committed Jul 22, 2025
commit 72bc426bed299d738196e31dc6b52ed4f5fdc68b
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down Expand Up @@ -98,9 +97,9 @@ void testPushPopWithNull() {
stringStack.push(null);

assertEquals(3, stringStack.size(), "Stack should contain 3 elements including nulls");
assertNull(stringStack.pop(), "Should pop null value");
org.junit.jupiter.api.Assertions.assertNull(stringStack.pop(), "Should pop null value");
assertEquals("not null", stringStack.pop(), "Should pop 'not null' value");
assertNull(stringStack.pop(), "Should pop null value");
org.junit.jupiter.api.Assertions.assertNull(stringStack.pop(), "Should pop null value");
assertTrue(stringStack.isEmpty(), "Stack should be empty after popping all elements");
}

Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/TheAlgorithms/Java/pull/6432/commits/72bc426bed299d738196e31dc6b52ed4f5fdc68b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy