diff --git a/core/src/test/java/org/opensearch/sql/data/model/ExprArrayValueTest.java b/core/src/test/java/org/opensearch/sql/data/model/ExprArrayValueTest.java index dbc75c4b77..f5d53be790 100644 --- a/core/src/test/java/org/opensearch/sql/data/model/ExprArrayValueTest.java +++ b/core/src/test/java/org/opensearch/sql/data/model/ExprArrayValueTest.java @@ -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; @@ -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