summaryrefslogtreecommitdiff
path: root/test/ios
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-22 16:10:31 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-06-24 13:08:36 -0700
commit4ba78b6bcfea756c274a05cba61352cd4681ae86 (patch)
treeb61f797421f44b14b239166edb536f55dc303fbc /test/ios
parent3396bcaaac5d317ee35b4cc2433663e3eb4b355d (diff)
downloadqtlocation-mapboxgl-4ba78b6bcfea756c274a05cba61352cd4681ae86.tar.gz
Transform needs only a single TransformState
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 {