Skip to content

IBM-Swift/Kitura#529 updated and fixed SwiftyJSON tests#7

Merged
shmuelk merged 34 commits intomasterfrom
testupdates
Jul 25, 2016
Merged

IBM-Swift/Kitura#529 updated and fixed SwiftyJSON tests#7
shmuelk merged 34 commits intomasterfrom
testupdates

Conversation

@NikitaSullivan
Copy link
Copy Markdown

No description provided.

Comment thread Tests/SwiftyJSON/NumberTests.swift Outdated
XCTAssertTrue(json.float! == 23231.65)
XCTAssertTrue(json.floatValue == 23231.65)
XCTAssertEqual(json.numberValue, NSNumber(value:23231.65))
XCTAssertEqualWithAccuracy(json.numberValue as Double, 23231.65, accuracy: 0.11)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 0.11? Seems a very large difference... Are we sure we aren't papering over a problem here?

irar2 and others added 27 commits July 13, 2016 15:21
into explicit subdictionary defintion, while specifying dictionary types
Comment thread Source/SwiftyJSON.swift Outdated
self.rawBool = value as! Bool
if let number = newValue as? NSNumber {
self.rawNumber = number
print("bool rawnumber is set")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A debug print statement was left in

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants