diff options
Diffstat (limited to 'platform/darwin/test/MGLAttributionInfoTests.m')
-rw-r--r-- | platform/darwin/test/MGLAttributionInfoTests.m | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/platform/darwin/test/MGLAttributionInfoTests.m b/platform/darwin/test/MGLAttributionInfoTests.m index eccc6ceece..befb66e8dd 100644 --- a/platform/darwin/test/MGLAttributionInfoTests.m +++ b/platform/darwin/test/MGLAttributionInfoTests.m @@ -92,12 +92,7 @@ CGFloat r, g, b, a; [color getRed:&r green:&g blue:&b alpha:&a]; MGLColor *linkColor = [infos[0].title attribute:NSForegroundColorAttributeName atIndex:0 effectiveRange:nil]; - CGFloat linkR, linkG, linkB, linkA; - [linkColor getRed:&linkR green:&linkG blue:&linkB alpha:&linkA]; - XCTAssertEqual(r, linkR); - XCTAssertEqual(g, linkG); - XCTAssertEqual(b, linkB); - XCTAssertEqual(a, linkA); + XCTAssertEqualObjects(linkColor, color); } - (void)testDedupe { |