File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
repository/Grease-Tests-Core.package
GRCollectionTest.class/instance
GRIntervalTest.class/instance Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ asserting
2+ assert: responseCollection validSequencedResponseFrom: receiverCollection
3+ " Assert that the returned object is of a valid response class for the tested collection."
4+
5+ self assert: (self isValidNewSequencedResponseClass: responseCollection class )
Original file line number Diff line number Diff line change 1+ tests
2+ testSorted
3+ " Unlike super implementation do not assume Interval >> #sorted returns a new object"
4+ | sorted collection |
5+ collection := self arbitraryCollection.
6+ sorted := collection sorted.
7+ self assert: sorted validSequencedResponseFrom: collection.
8+ self assert: sorted sortedWith: [ :a :b | a <= b ].
9+
10+ sorted := collection sorted: [ :a :b | a > b ].
11+ self assert: sorted validSequencedNewResponseFrom: collection.
12+ self assert: sorted sortedWith: [ :a :b | a > b ]
You can’t perform that action at this time.
0 commit comments