Skip to content

Commit b4a2b9e

Browse files
authored
Merge pull request #25 from farzadshbfn/master
Fix debugDescription in ExtendedDiff.Element and results in DiffTests
2 parents 74705ff + 17bf30b commit b4a2b9e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

DiffTests/DiffTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ class DiffTests: XCTestCase {
4747
("Wojtek", "Wojciech", "D(3)I(3)I(4)D(5)I(6)I(7)"),
4848
("1234", "1234", ""),
4949
("", "", ""),
50-
("gitten", "sitting", "M(06)I(0)D(4)I(4)"),
51-
("Oh Hi", "Hi Oh", "M(03)M(14)M(22)"),
52-
("Hi Oh", "Oh Hi", "M(03)M(14)M(22)"),
53-
("12345", "12435", "M(23)"),
54-
("1362", "31526", "M(01)M(24)I(2)"),
50+
("gitten", "sitting", "M(0,6)I(0)D(4)I(4)"),
51+
("Oh Hi", "Hi Oh", "M(0,3)M(1,4)M(2,2)"),
52+
("Hi Oh", "Oh Hi", "M(0,3)M(1,4)M(2,2)"),
53+
("12345", "12435", "M(2,3)"),
54+
("1362", "31526", "M(0,1)M(2,4)I(2)"),
5555
]
5656

5757
func testDiffOutputs() {

Sources/ExtendedDiff.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ extension ExtendedDiff.Element: CustomDebugStringConvertible {
171171
case let .insert(at):
172172
return "I(\(at))"
173173
case let .move(from, to):
174-
return "M(\(from)\(to))"
174+
return "M(\(from),\(to))"
175175
}
176176
}
177177
}

0 commit comments

Comments
 (0)