Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB committed Oct 27, 2023
1 parent 381214d commit 2353a14
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.lessThan;
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 java.util.Arrays;
Expand All @@ -12,10 +13,14 @@
import org.opensearch.sql.data.type.ExprCoreType;

public class ExprArrayValueTest {
@Test
public void testIsArrayFalse() {
assertFalse(new ExprStringValue("test").isArray());
}
@Test
public void testIsArray() {
ExprArrayValue exprArrayValue = new ExprArrayValue(Arrays.asList(new ExprStringValue("test")));
assertTrue(exprArrayValue.isArray());
assertFalse(exprArrayValue.isArray());
}

@Test
Expand Down

0 comments on commit 2353a14

Please sign in to comment.