summaryrefslogtreecommitdiff
path: root/test/ios
diff options
context:
space:
mode:
Diffstat (limited to 'test/ios')
-rw-r--r--test/ios/MapViewTests.m10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/ios/MapViewTests.m b/test/ios/MapViewTests.m
index 3755da0bcd..ed378877c8 100644
--- a/test/ios/MapViewTests.m
+++ b/test/ios/MapViewTests.m
@@ -76,9 +76,8 @@
0,
@"compass should not be visible when map is unrotated");
- XCTAssertEqualObjects([NSValue valueWithCGAffineTransform:tester.compass.transform],
- [NSValue valueWithCGAffineTransform:CGAffineTransformIdentity],
- @"compass rotation should indicate map rotation");
+ XCTAssert(CGAffineTransformEqualToTransform(tester.compass.transform, CGAffineTransformIdentity),
+ @"compass rotation should indicate map rotation");
}
- (void)testDirectionReset {
@@ -100,9 +99,8 @@
0,
@"compass should not be visible when map is unrotated");
- XCTAssertEqualObjects([NSValue valueWithCGAffineTransform:tester.compass.transform],
- [NSValue valueWithCGAffineTransform:CGAffineTransformIdentity],
- @"compass rotation should indicate map rotation");
+ XCTAssert(CGAffineTransformEqualToTransform(tester.compass.transform, CGAffineTransformIdentity),
+ @"compass rotation should indicate map rotation");
}
- (void)testZoom {