Skip to content
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

Closed
wants to merge 7 commits into from
Closed

[WIP] swift test in Linux #708

wants to merge 7 commits into from

Conversation

wongzigii
Copy link
Member

@wongzigii wongzigii commented Nov 7, 2016

WIP

Fixs #708

This PR aims at porting SwiftyJSON to Linux Platform.

@zhigang1992 zhigang1992 added this to the 3.2 milestone Nov 16, 2016
@ldiqual
Copy link
Contributor

ldiqual commented Nov 22, 2016

@wongzigii Can you clarify what's left on this PR? Do you need an extra hand maybe?

@wongzigii
Copy link
Member Author

@ldiqual SPM currently doesn't provide a way to include resources e.g. .json file to be tested.

Relate:

https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20161114/003987.html
https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20161107/003912.html

@ldiqual
Copy link
Contributor

ldiqual commented Nov 22, 2016

@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?

@wongzigii
Copy link
Member Author

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
@wongzigii
Copy link
Member Author

Closing in favor of #943

@wongzigii wongzigii closed this Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants