@@ -571,35 +571,35 @@ TEST_F(ValidationTest, QueriesWithNullOrNaNFiltersOtherThanEqualityFail) {
571
571
FAIL () << " should throw exception" ;
572
572
} catch (const FirestoreException& exception) {
573
573
EXPECT_STREQ (
574
- " Invalid Query. Null supports only equality comparisons ( via "
575
- " whereEqualTo() )." ,
574
+ " Invalid Query. Null only supports comparisons via whereEqualTo() and "
575
+ " whereNotEqualTo( )." ,
576
576
exception.what ());
577
577
}
578
578
try {
579
579
collection.WhereArrayContains (" a" , FieldValue::Null ());
580
580
FAIL () << " should throw exception" ;
581
581
} catch (const FirestoreException& exception) {
582
582
EXPECT_STREQ (
583
- " Invalid Query. Null supports only equality comparisons ( via "
584
- " whereEqualTo() )." ,
583
+ " Invalid Query. Null only supports comparisons via whereEqualTo() and "
584
+ " whereNotEqualTo( )." ,
585
585
exception.what ());
586
586
}
587
587
try {
588
588
collection.WhereGreaterThan (" a" , FieldValue::Double (NAN));
589
589
FAIL () << " should throw exception" ;
590
590
} catch (const FirestoreException& exception) {
591
591
EXPECT_STREQ (
592
- " Invalid Query. NaN supports only equality comparisons ( via "
593
- " whereEqualTo() )." ,
592
+ " Invalid Query. NaN only supports comparisons via whereEqualTo() and "
593
+ " whereNotEqualTo( )." ,
594
594
exception.what ());
595
595
}
596
596
try {
597
597
collection.WhereArrayContains (" a" , FieldValue::Double (NAN));
598
598
FAIL () << " should throw exception" ;
599
599
} catch (const FirestoreException& exception) {
600
600
EXPECT_STREQ (
601
- " Invalid Query. NaN supports only equality comparisons ( via "
602
- " whereEqualTo() )." ,
601
+ " Invalid Query. NaN only supports comparisons via whereEqualTo() and "
602
+ " whereNotEqualTo( )." ,
603
603
exception.what ());
604
604
}
605
605
}
@@ -735,8 +735,9 @@ TEST_F(ValidationTest, QueriesWithDifferentInequalityFieldsFail) {
735
735
FAIL () << " should throw exception" ;
736
736
} catch (const FirestoreException& exception) {
737
737
EXPECT_STREQ (
738
- " All where filters other than whereEqualTo() must be on the same "
739
- " field. But you have filters on 'x' and 'y'" ,
738
+ " All where filters with an inequality (notEqualTo, notIn, lessThan, "
739
+ " lessThanOrEqualTo, greaterThan, or greaterThanOrEqualTo) must be on "
740
+ " the same field. But you have filters on 'x' and 'y'" ,
740
741
exception.what ());
741
742
}
742
743
}
0 commit comments