mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 15:02:46 +08:00
24 lines
462 B
Java
24 lines
462 B
Java
package com.thealgorithms.strings;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class ValidParenthesesTest {
|
|
|
|
@Test
|
|
void testOne() {
|
|
assertEquals(true, ValidParentheses.isValid("()"));
|
|
}
|
|
|
|
@Test
|
|
void testTwo() {
|
|
assertEquals(true, ValidParentheses.isValid("()[]{}"));
|
|
}
|
|
|
|
@Test
|
|
void testThree() {
|
|
assertEquals(false, ValidParentheses.isValid("(]"));
|
|
}
|
|
}
|