-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] swift test in Linux #708
Conversation
…o fix-swift-test * 'master' of https://github.com/SwiftyJSON/SwiftyJSON: Re-organize tests to satisfy SPM
@wongzigii Can you clarify what's left on this PR? Do you need an extra hand maybe? |
@ldiqual SPM currently doesn't provide a way to include resources e.g. Relate: https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20161114/003987.html |
@wongzigii Given that it will remain unfixed for a while, maybe we should go ahead and put the json file in a gist that we'd download during the test? In theory it shouldn't be too hard to implement, it'd just make one test case a tad slow. What do you think? |
It makes sense at this time as a workaround. I will give it a try later. |
…o fix-swift-test * 'master' of https://github.com/SwiftyJSON/SwiftyJSON: update Integration section of README to reflect latest version in SPM usage subsection Fix duplicate comma typo update readme make casting nil to nsnull optional represent strings with nil as if it was nsnull Instead of checking for the Int8 type explicitly when setting 'object', cast the Int8 value to an Int and pass that into an NSNumber when setting 'int8' or 'int8Value' Update version in pod spec Add performance test Attemp to fix #697 Fix 'AnyObject' in comment and README.md The ‘isBool’ function on the NSNumber extension uses ‘trueObjCType’, which represents the type encoding for ‘true’ represented as an NSNumber, and ‘falseObjCType’, which represents the type encoding for ‘false’ represented as an NSNumber. Both type encodings are equal to ‘c’. However, an NSNumber that wraps around a value of type Int8 also has a type encoding of ‘c’. Therefore, a user who passes in a value of 0 or 1 (of type Int8) into JSON will expect to see the numbers 0 or 1 as the output because that was the intent. Unfortunately, that value will be wrapped into NSNumber and be considered a bool, so the user will see ‘true’ or ‘false’ instead. Fix typo in README.md Turn on render documentation mode. Finish subscript part. Add descriptions. Add getting a string using a path to the element. Updating subscript section in playground Added check for pre-escaped URLs to prevent double-escaping of % character # Conflicts: # Tests/SwiftyJSONTests/SequenceTypeTests.swift
Closing in favor of #943 |
WIP
Fixs #708
This PR aims at porting SwiftyJSON to Linux Platform.