This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
[ios, macos] Fix MGLLight.anchor to accept style functions - #9089
Merged
fabian-guerra merged 1 commit intoMay 24, 2017
Merged
Conversation
Contributor
|
This is intended to be targeted at the release branch, right? |
fabian-guerra
changed the base branch from
master
to
release-ios-v3.6.0-android-v5.1.0
May 24, 2017 16:22
Contributor
Author
|
@jfirebaugh yesterday I pushed this branch thinking that it contained the fix I made, for an unknown reason my commit got lost. You are right this branch should be merged into |
boundsj
reviewed
May 24, 2017
| MGLLight *mglLight = [[MGLLight alloc] initWithMBGLLight:&light]; | ||
| XCTAssertEqual(mglLight.anchor, MGLLightAnchorViewport); | ||
|
|
||
| NSAssert([mglLight.anchor isKindOfClass:[MGLConstantStyleValue class]], @"mglLight.anchor isn’t a MGLConstantStyleValue."); |
Contributor
There was a problem hiding this comment.
Since this is a test, would it make more sense to use an XCT assertion instead of NSAssert?
Contributor
There was a problem hiding this comment.
That’s a good point. A failed assertion would crash the test harness instead of outputting an error.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9085