Skip to content

Commit bd77101

Browse files
author
Innocent
committed
updated tests
1 parent 04ff61b commit bd77101

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/iceberg/test/expression_json_test.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,14 @@ TEST_F(ExpressionJsonTest, FalseExpression) {
6565
EXPECT_EQ(result.value()->op(), Expression::Operation::kFalse);
6666
}
6767

68-
TEST_F(ExpressionJsonTest, OpToString) {
68+
TEST_F(ExpressionJsonTest, OperationTypeTests) {
6969
EXPECT_EQ(OperationTypeFromString("true"), Expression::Operation::kTrue);
7070
EXPECT_EQ("true", ToStringOperationType(Expression::Operation::kTrue));
71+
EXPECT_TRUE(IsSetOperation(Expression::Operation::kIn));
72+
EXPECT_FALSE(IsSetOperation(Expression::Operation::kTrue));
73+
74+
EXPECT_TRUE(IsUnaryOperation(Expression::Operation::kIsNull));
75+
EXPECT_FALSE(IsUnaryOperation(Expression::Operation::kTrue));
7176
}
7277

7378
} // namespace iceberg

0 commit comments

Comments
 (0)