diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-03-06 22:21:58 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-03-06 22:21:58 -0800 |
commit | 90814f272ae2c1c0dee4be86f05a8664ed15d4ae (patch) | |
tree | 9651d5b63fd528d28eb7bf8dd420a9592bcfc8fb | |
parent | 6c3e8efa3a35c9934dc3b852c4db9d51aaa13a05 (diff) | |
download | qtlocation-mapboxgl-90814f272ae2c1c0dee4be86f05a8664ed15d4ae.tar.gz |
[ios, macos] Simplify color equality check
-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 { |