@@ -114,14 +114,14 @@ TEST_F(BinderTest, ComparisonPredicates) {
114114 ICEBERG_UNWRAP_OR_FAIL (auto bound_eq, Bind (unbound_eq));
115115 EXPECT_EQ (bound_eq->op (), Expression::Operation::kEq );
116116 EXPECT_TRUE (bound_eq->is_bound_predicate ());
117- EXPECT_EQ (bound_eq->ToString (), " ref(id=2, type=string) == \" Alice\" " );
117+ EXPECT_EQ (bound_eq->ToString (), " ref(id=2, type=string) == Alice" );
118118
119119 // Test NotEqual
120120 auto unbound_neq = Expressions::NotEqual (" name" , Literal::String (" Bob" ));
121121 ICEBERG_UNWRAP_OR_FAIL (auto bound_neq, Bind (unbound_neq));
122122 EXPECT_EQ (bound_neq->op (), Expression::Operation::kNotEq );
123123 EXPECT_TRUE (bound_neq->is_bound_predicate ());
124- EXPECT_EQ (bound_neq->ToString (), " ref(id=2, type=string) != \" Bob\" " );
124+ EXPECT_EQ (bound_neq->ToString (), " ref(id=2, type=string) != Bob" );
125125}
126126
127127TEST_F (BinderTest, StringPredicates) {
@@ -130,15 +130,14 @@ TEST_F(BinderTest, StringPredicates) {
130130 ICEBERG_UNWRAP_OR_FAIL (auto bound_starts, Bind (unbound_starts));
131131 EXPECT_EQ (bound_starts->op (), Expression::Operation::kStartsWith );
132132 EXPECT_TRUE (bound_starts->is_bound_predicate ());
133- EXPECT_EQ (bound_starts->ToString (), " ref(id=2, type=string) startsWith \"\" Al \" \"" );
133+ EXPECT_EQ (bound_starts->ToString (), " ref(id=2, type=string) startsWith \" Al \" " );
134134
135135 // Test NotStartsWith
136136 auto unbound_not_starts = Expressions::NotStartsWith (" name" , " Bo" );
137137 ICEBERG_UNWRAP_OR_FAIL (auto bound_not_starts, Bind (unbound_not_starts));
138138 EXPECT_EQ (bound_not_starts->op (), Expression::Operation::kNotStartsWith );
139139 EXPECT_TRUE (bound_not_starts->is_bound_predicate ());
140- EXPECT_EQ (bound_not_starts->ToString (),
141- " ref(id=2, type=string) notStartsWith \"\" Bo\"\" " );
140+ EXPECT_EQ (bound_not_starts->ToString (), " ref(id=2, type=string) notStartsWith \" Bo\" " );
142141}
143142
144143TEST_F (BinderTest, SetPredicates) {
@@ -179,7 +178,7 @@ TEST_F(BinderTest, AndExpression) {
179178 ICEBERG_UNWRAP_OR_FAIL (auto bound_and, Bind (unbound_and));
180179 EXPECT_EQ (bound_and->op (), Expression::Operation::kAnd );
181180 EXPECT_EQ (bound_and->ToString (),
182- " (ref(id=2, type=string) == \" Alice\" and ref(id=3, type=int) > 25)" );
181+ " (ref(id=2, type=string) == Alice and ref(id=3, type=int) > 25)" );
183182
184183 // Verify both children are bound
185184 auto result = IsBoundVisitor::IsBound (bound_and);
@@ -447,7 +446,7 @@ TEST_F(RewriteNotTest, NotExpression) {
447446 // Equal should be negated to NotEqual
448447 EXPECT_EQ (rewritten->op (), Expression::Operation::kNotEq );
449448 EXPECT_TRUE (rewritten->is_bound_predicate ());
450- EXPECT_EQ (rewritten->ToString (), " ref(id=2, type=string) != \" Alice\" " );
449+ EXPECT_EQ (rewritten->ToString (), " ref(id=2, type=string) != Alice" );
451450}
452451
453452TEST_F (RewriteNotTest, DoubleNegation) {
0 commit comments