Skip to content

Commit ace3203

Browse files
committed
Fix a test-case to cover case(.move, .insert) case for sorting.
1 parent 5fdf1ee commit ace3203

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DiffTests/ExtendedPatchSortTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ExtendedPatchSortTests: XCTestCase {
5353
let expectations = [
5454
("gitten", "sitting", "D(4)M(0,4)I(0,s)I(4,i)"),
5555
("1362", "31526", "M(0,2)M(1,3)I(2,5)"),
56-
("12345", "54321suvx", "M(0,4)M(0,3)M(0,2)M(0,1)I(5,s)I(6,u)I(7,v)I(8,x)")
56+
("a1b2c3pq", "3sa1cz2rb", "D(7)D(6)M(5,0)M(3,5)M(3,4)I(1,s)I(5,z)I(7,r)")
5757
]
5858

5959
let sort: ExtendedSortingFunction = { fst, snd in
@@ -62,8 +62,8 @@ class ExtendedPatchSortTests: XCTestCase {
6262
return true
6363
case (.insert, _):
6464
return false
65-
case (.move, .insert):
66-
return true
65+
case (.move, .insert):
66+
return true
6767
case (.move, _):
6868
return false
6969
}

0 commit comments

Comments
 (0)