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
Testing and refactoring #35
Conversation
"Key3": "Value3" | ||
] | ||
|
||
XCTAssertEqual(HTTP.stringForQuery(query), "?Key3=Value3&Key1=Value1&Key2=Value2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the order 3..1..2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From The Swift Programming Language:
Swift’s
Dictionary
type does not have a defined ordering. To iterate over the keys or values of a dictionary in a specific order, use thesort()
method on itskeys
orvalues
property.
And I just copied it from Playground, so that's why the expectation is strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, let's sort them (I added a comment above).
@@ -3,7 +3,7 @@ | |||
version = "3.0"> | |||
<TimelineItems> | |||
<LoggerValueHistoryTimelineItem | |||
documentLocation = "#CharacterRangeLen=11&CharacterRangeLoc=338&EndingColumnNumber=18&EndingLineNumber=13&StartingColumnNumber=5&StartingLineNumber=13&Timestamp=456581904.255022" | |||
documentLocation = "#CharacterRangeLen=0&CharacterRangeLoc=258&EndingColumnNumber=18&EndingLineNumber=23&StartingColumnNumber=5&StartingLineNumber=23&Timestamp=456844329.662716" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just revert this change?
Please just revert the playground timeline xml change and I'll merge this, @cojoj. Thanks for the work you put into it! |
…erverSDK into testing_refactoring
@czechboy0 I've rebased and reverted |
Thanks, @cojoj! |
I've created another two test classes and also made some refactoring where I found it important.
I've also documented some methods so please check if this style of documenting is suitable - it follows the new Swift 2 standards.