-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug caused by dictionary entry order sensitivity (#14)
* Add Issue13Tests * Fix a bug caused by dictionary entry order sensitivity
- Loading branch information
Showing
4 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import XCTest | ||
@testable import MirrorDiffKit | ||
|
||
|
||
class Issue13Tests: XCTestCase { | ||
func testDictEquality() { | ||
let a = [ | ||
"key1": "value1", | ||
"key2": "value2", | ||
] | ||
let b = [ | ||
"key2": "value2", | ||
"key1": "value1", | ||
] | ||
|
||
XCTAssert( | ||
Diffable.from(any: a) =~ Diffable.from(any: b), | ||
diff(between: b, and: a) | ||
) | ||
} | ||
} |