Files
Java/src/test/java/com/thealgorithms/strings/ValidParenthesesTest.java
Piotr Idzik d2ddec55e5 style: include NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION (#5149)
* style: use `assertFalse` and `assertTrue`

* style: include `NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION`
2024-05-08 22:41:46 +05:30

25 lines
507 B
Java

package com.thealgorithms.strings;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
public class ValidParenthesesTest {
@Test
void testOne() {
assertTrue(ValidParentheses.isValid("()"));
}
@Test
void testTwo() {
assertTrue(ValidParentheses.isValid("()[]{}"));
}
@Test
void testThree() {
assertFalse(ValidParentheses.isValid("(]"));
}
}