Skip to content

Commit 3740daa

Browse files
committed
♻️ Use Equatable
1 parent eb8d682 commit 3740daa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Tests/OrderTests.swift

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Foundation
12
@testable import plan
23
import Testing
34

@@ -10,9 +11,9 @@ import Testing
1011
#expect(throws: Never.self) {
1112
let order = Order.parse(s: "title.full")!
1213
let comparator = EventComparator(order: order)
13-
let output = events.sorted(using: comparator)[0].title.full
14+
let output = events.sorted(using: comparator)
1415

15-
#expect(output == eventA.title.full)
16+
#expect(output == [eventA, eventB])
1617
}
1718
}
1819

@@ -24,9 +25,9 @@ import Testing
2425
#expect(throws: Never.self) {
2526
let order = Order.parse(s: "title.full:desc")!
2627
let comparator = EventComparator(order: order)
27-
let output = events.sorted(using: comparator)[0].title.full
28+
let output = events.sorted(using: comparator)
2829

29-
#expect(output == eventB.title.full)
30+
#expect(output == [eventB, eventA])
3031
}
3132
}
3233
}

0 commit comments

Comments
 (0)