From b4ec0ba52c9e6390b1bd79bd51a85f151db8be90 Mon Sep 17 00:00:00 2001 From: milaGGL <107142260+milaGGL@users.noreply.github.com> Date: Fri, 13 Oct 2023 10:39:48 -0400 Subject: [PATCH] Remove validation test on inequality restrictions --- .../src/validation_test.cc | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/firestore/integration_test_internal/src/validation_test.cc b/firestore/integration_test_internal/src/validation_test.cc index 1d3ee2fcd7..b8fc53eaca 100644 --- a/firestore/integration_test_internal/src/validation_test.cc +++ b/firestore/integration_test_internal/src/validation_test.cc @@ -966,32 +966,6 @@ TEST_F(ValidationTest, QueryOrderByKeyBoundsMustBeStringsWithoutSlashes) { ErrorMessage(ErrorCase::kQueryInvalidBoundWithSlash)); } -TEST_F(ValidationTest, QueriesWithDifferentInequalityFieldsFail) { - EXPECT_ERROR(Collection() - .WhereGreaterThan("x", FieldValue::Integer(32)) - .WhereLessThan("y", FieldValue::String("cat")), - ErrorMessage(ErrorCase::kQueryDifferentInequalityFields)); -} - -TEST_F(ValidationTest, QueriesWithInequalityDifferentThanFirstOrderByFail) { - CollectionReference collection = Collection(); - std::string reason = - ErrorMessage(ErrorCase::kQueryInequalityOrderByDifferentFields); - EXPECT_ERROR( - collection.WhereGreaterThan("x", FieldValue::Integer(32)).OrderBy("y"), - reason); - EXPECT_ERROR( - collection.OrderBy("y").WhereGreaterThan("x", FieldValue::Integer(32)), - reason); - EXPECT_ERROR(collection.WhereGreaterThan("x", FieldValue::Integer(32)) - .OrderBy("y") - .OrderBy("x"), - reason); - EXPECT_ERROR(collection.OrderBy("y").OrderBy("x").WhereGreaterThan( - "x", FieldValue::Integer(32)), - reason); -} - TEST_F(ValidationTest, QueriesMustNotSpecifyStartingOrEndingPointAfterOrderBy) { CollectionReference collection = Collection(); Query query = collection.OrderBy("foo");