@@ -465,27 +465,19 @@ void main() {
465
465
466
466
test ('queriesWithNullOrNaNFiltersOtherThanEqualityFail' , () async {
467
467
final CollectionReference collection = await testCollection ();
468
- await expectError (
469
- () => collection.whereGreaterThan ('a' , null ),
470
- 'Invalid Query. You can only perform equality comparisons on null '
471
- '(via whereEqualTo()).' );
472
- await expectError (
473
- () => collection.whereArrayContains ('a' , null ),
474
- 'Invalid Query. You can only perform equality comparisons on null '
475
- '(via whereEqualTo()).' );
468
+ await expectError (() => collection.whereGreaterThan ('a' , null ),
469
+ 'Invalid Query. Null supports only equality comparisons (via whereEqualTo()).' );
470
+ await expectError (() => collection.whereArrayContains ('a' , null ),
471
+ 'Invalid Query. Null supports only equality comparisons (via whereEqualTo()).' );
476
472
await expectError (() => collection.whereArrayContainsAny ('a' , null ),
477
473
'Invalid Query. A non-empty array is required for "array_contains_any" filters.' );
478
474
await expectError (() => collection.whereIn ('a' , null ),
479
475
'Invalid Query. A non-empty array is required for "in" filters.' );
480
476
481
- await expectError (
482
- () => collection.whereGreaterThan ('a' , double .nan),
483
- 'Invalid Query. You can only perform equality comparisons on NaN '
484
- '(via whereEqualTo()).' );
485
- await expectError (
486
- () => collection.whereArrayContains ('a' , double .nan),
487
- 'Invalid Query. You can only perform equality comparisons on NaN '
488
- '(via whereEqualTo()).' );
477
+ await expectError (() => collection.whereGreaterThan ('a' , double .nan),
478
+ 'Invalid Query. NaN supports only equality comparisons (via whereEqualTo()).' );
479
+ await expectError (() => collection.whereArrayContains ('a' , double .nan),
480
+ 'Invalid Query. NaN supports only equality comparisons (via whereEqualTo()).' );
489
481
});
490
482
491
483
test ('queriesCannotBeCreatedFromDocumentsMissingSortValues' , () async {
0 commit comments