mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-06 17:29:31 +08:00
@ -1,24 +1,23 @@
|
||||
package com.thealgorithms.strings;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
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("(]"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user