Content-Length: 272042 | pFad | http://github.com/TheAlgorithms/Java/pull/6398/commits/bf50c693e43ae5de2e44adb84c4659867d2f6da4

BC testing: Enhance `ValidParenthesesTest` by alxkm · Pull Request #6398 · TheAlgorithms/Java · GitHub
Skip to content

testing: Enhance ValidParenthesesTest #6398

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
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
style: fix formatting for checkstyle
  • Loading branch information
alxkm committed Jul 16, 2025
commit bf50c693e43ae5de2e44adb84c4659867d2f6da4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
public class ValidParenthesesTest {

@ParameterizedTest(name = "Input: \"{0}\" → Expected: {1}")
@CsvSource({"'()', true", "'()[]{}', true", "'(]', false", "'{[]}', true", "'([{}])', true", "'([)]', false", "'', true", "'(', false", "')', false", "'{{{{}}}}', true", "'[({})]', true", "'[(])', false", "'[', false", "']', false", "'()()()()', true", "'(()', false", "'())', false", "'{[()()]()}', true"})
@CsvSource({"'()', true", "'()[]{}', true", "'(]', false", "'{[]}', true", "'([{}])', true", "'([)]', false", "'', true", "'(', false", "')', false", "'{{{{}}}}', true", "'[({})]', true", "'[(])', false", "'[', false", "']', false", "'()()()()', true", "'(()', false", "'())', false",
"'{[()()]()}', true"})
void testIsValid(String input, boolean expected) {
assertEquals(expected, ValidParentheses.isValid(input));
}
Expand Down
Loading








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/6398/commits/bf50c693e43ae5de2e44adb84c4659867d2f6da4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy