zanmato1984 commented on code in PR #45701:
URL: https://github.com/apache/arrow/pull/45701#discussion_r1994964469
##########
cpp/src/arrow/compute/expression_test.cc:
##########
@@ -1916,6 +1916,12 @@ TEST(Expression, SerializationRoundTrips) {
equal(field_ref("beta"), literal(3.25f))}));
}
+TEST(Expression, ExpressionEquals) {
+ Expression expr1;
+ Expression expr2(literal(1));
+
+ EXPECT_FALSE(expr1.Equals(expr2));
Review Comment:
```suggestion
EXPECT_FALSE(expr1.Equals(expr2));
EXPECT_FALSE(expr2.Equals(expr1));
```
##########
cpp/src/arrow/compute/expression_test.cc:
##########
@@ -1916,6 +1916,12 @@ TEST(Expression, SerializationRoundTrips) {
equal(field_ref("beta"), literal(3.25f))}));
}
+TEST(Expression, ExpressionEquals) {
+ Expression expr1;
+ Expression expr2(literal(1));
+
+ EXPECT_FALSE(expr1.Equals(expr2));
Review Comment:
Besides @raulcd 's suggestion, you may want to check mutual inequality.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]