X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
asserting
assert: responseCollection validSequencedResponseFrom: receiverCollection
"Assert that the returned object is of a valid response class for the tested collection."

self assert: (self isValidNewSequencedResponseClass: responseCollection class)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
tests
testSorted
"Unlike super implementation do not assume Interval >> #sorted returns a new object"
| sorted collection |
collection := self arbitraryCollection.
sorted := collection sorted.
self assert: sorted validSequencedResponseFrom: collection.
self assert: sorted sortedWith: [ :a :b | a <= b ].

sorted := collection sorted: [ :a :b | a > b ].
self assert: sorted validSequencedNewResponseFrom: collection.
self assert: sorted sortedWith: [ :a :b | a > b ]
X Tutup