style: include NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION (#5149)

* style: use `assertFalse` and `assertTrue`

* style: include `NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION`
This commit is contained in:
Piotr Idzik
2024-05-08 19:11:46 +02:00
committed by GitHub
parent d3bb691f59
commit d2ddec55e5
11 changed files with 47 additions and 43 deletions

View File

@ -1,6 +1,7 @@
package com.thealgorithms.strings;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
@ -8,16 +9,16 @@ public class ValidParenthesesTest {
@Test
void testOne() {
assertEquals(true, ValidParentheses.isValid("()"));
assertTrue(ValidParentheses.isValid("()"));
}
@Test
void testTwo() {
assertEquals(true, ValidParentheses.isValid("()[]{}"));
assertTrue(ValidParentheses.isValid("()[]{}"));
}
@Test
void testThree() {
assertEquals(false, ValidParentheses.isValid("(]"));
assertFalse(ValidParentheses.isValid("(]"));
}
}