diff options
author | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2017-06-22 14:36:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-22 14:36:21 -0400 |
commit | a1c5b32da66a32e52e24163f826dabbc1e4d38bf (patch) | |
tree | 77ff10c12884788022523ea6ad0d23e94d63bdf4 /platform/darwin/test/MGLLightTest.mm | |
parent | b7ec96d352c78172b6df4afedd6fc0e7db142a54 (diff) | |
download | qtlocation-mapboxgl-a1c5b32da66a32e52e24163f826dabbc1e4d38bf.tar.gz |
Boxing ObjC structs (#9343)
* [ios, macos] Make structs boxable
* [ios, macos] Update changelogs.
Diffstat (limited to 'platform/darwin/test/MGLLightTest.mm')
-rw-r--r-- | platform/darwin/test/MGLLightTest.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/test/MGLLightTest.mm b/platform/darwin/test/MGLLightTest.mm index b021bd1b73..8f901cbb72 100644 --- a/platform/darwin/test/MGLLightTest.mm +++ b/platform/darwin/test/MGLLightTest.mm @@ -132,9 +132,9 @@ - (void)testValueAdditions { MGLSphericalPosition position = MGLSphericalPositionMake(1.15, 210, 30); - XCTAssertEqual([NSValue valueWithMGLSphericalPosition:position].MGLSphericalPositionValue.radial, position.radial); - XCTAssertEqual([NSValue valueWithMGLSphericalPosition:position].MGLSphericalPositionValue.azimuthal, position.azimuthal); - XCTAssertEqual([NSValue valueWithMGLSphericalPosition:position].MGLSphericalPositionValue.polar, position.polar); + XCTAssertEqual(@(position).MGLSphericalPositionValue.radial, position.radial); + XCTAssertEqual(@(position).MGLSphericalPositionValue.azimuthal, position.azimuthal); + XCTAssertEqual(@(position).MGLSphericalPositionValue.polar, position.polar); XCTAssertEqual([NSValue valueWithMGLLightAnchor:MGLLightAnchorMap].MGLLightAnchorValue, MGLLightAnchorMap); XCTAssertEqual([NSValue valueWithMGLLightAnchor:MGLLightAnchorViewport].MGLLightAnchorValue, MGLLightAnchorViewport); } |