From 6877e3efe73fb6e103c2635f1e4b1c1866b17d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Wed, 5 Oct 2016 11:10:07 -0700 Subject: [ios, macos] Remove support for CONTAINS operator (#6590) * [ios, macos] Removed support for CONTAINS operator * [ios, macos] Removed CONTAINS test --- platform/darwin/test/MGLFilterTests.mm | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'platform/darwin/test') diff --git a/platform/darwin/test/MGLFilterTests.mm b/platform/darwin/test/MGLFilterTests.mm index 6fbe5f0157..d73313e27d 100644 --- a/platform/darwin/test/MGLFilterTests.mm +++ b/platform/darwin/test/MGLFilterTests.mm @@ -74,18 +74,6 @@ [self.mapView.style addLayer:layer]; } -- (void)testContainsPredicate -{ - // core does not have a "contains" filter but we can achieve the equivalent by creating an `mbgl::style::InFilter` - // and searching the value for the key - NSPredicate *expectedPredicate = [NSPredicate predicateWithFormat:@"park IN %@", @[@"park", @"neighbourhood"]]; - NSPredicate *containsPredicate = [NSPredicate predicateWithFormat:@"%@ CONTAINS %@", @[@"park", @"neighbourhood"], @"park"]; - - layer.predicate = containsPredicate; - XCTAssertEqualObjects(layer.predicate, expectedPredicate); - [self.mapView.style addLayer:layer]; -} - - (void)testBetweenPredicate { // core does not have a "between" filter but we can achieve the equivalent by creating a set of greater than or equal / less than or equal -- cgit v1.2.1