Commit 3740daa 1 parent eb8d682 commit 3740daa Copy full SHA for 3740daa
File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ import Foundation
1
2
@testable import plan
2
3
import Testing
3
4
@@ -10,9 +11,9 @@ import Testing
10
11
#expect( throws: Never . self) {
11
12
let order = Order . parse ( s: " title.full " ) !
12
13
let comparator = EventComparator ( order: order)
13
- let output = events. sorted ( using: comparator) [ 0 ] . title . full
14
+ let output = events. sorted ( using: comparator)
14
15
15
- #expect( output == eventA. title . full )
16
+ #expect( output == [ eventA, eventB ] )
16
17
}
17
18
}
18
19
@@ -24,9 +25,9 @@ import Testing
24
25
#expect( throws: Never . self) {
25
26
let order = Order . parse ( s: " title.full:desc " ) !
26
27
let comparator = EventComparator ( order: order)
27
- let output = events. sorted ( using: comparator) [ 0 ] . title . full
28
+ let output = events. sorted ( using: comparator)
28
29
29
- #expect( output == eventB. title . full )
30
+ #expect( output == [ eventB, eventA ] )
30
31
}
31
32
}
32
33
}
You can’t perform that action at this time.
0 commit comments