From 4ba78b6bcfea756c274a05cba61352cd4681ae86 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 22 Apr 2015 16:10:31 -0700 Subject: Transform needs only a single TransformState --- test/ios/MapViewTests.m | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test/ios') 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 { -- cgit v1.2.1