Skip to content

Commit

Permalink
Use #assertEmpty: instead of #assert:equals: with #() as second argum…
Browse files Browse the repository at this point in the history
…ent.
  • Loading branch information
juliendelplanque committed Oct 2, 2019
1 parent 542509d commit fceb883
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Collections-Tests/TIterateSequencedReadableTest.trait.st
Expand Up @@ -144,13 +144,8 @@ TIterateSequencedReadableTest >> testFromToDo [
{ #category : #'tests - iterate on sequenced reable collections' }
TIterateSequencedReadableTest >> testGroupsOfAtATimeCollect [
| groupsOf2 |
self
assert: (self empty groupsOf: 2 atATimeCollect: [ :x | x ])
equals: #().

self
assert: (self empty groupsOf: 2 atATimeCollect: #yourself)
equals: #().
self assertEmpty: (self empty groupsOf: 2 atATimeCollect: [ :x | x ]).
self assertEmpty: (self empty groupsOf: 2 atATimeCollect: #yourself).

groupsOf2 := self nonEmptyMoreThan1Element groupsOf: 2 atATimeCollect: [ :x | x ].

Expand Down

0 comments on commit fceb883

Please sign in to comment.