File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+ import Foundation
12@testable import plan
23import 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}
You can’t perform that action at this time.
0 commit comments