Re: [Pharo-users] TestAsserter>>assertCollection:hasSameElements:

2015-10-30 Thread jtuc...@objektfabrik.de
Peter, Adding the feedback generation into makes the API even more complicated, because you'd have to ar least pass a String as a fourth parameter. So we'd end up with: assertExecuting: aBlock with: listOfArguments resultsIn: expectedResult otherwise: failureString. ... and if you - like m

Re: [Pharo-users] TestAsserter>>assertCollection:hasSameElements:

2015-10-26 Thread jtuc...@objektfabrik.de
Peter, I see you clearly understand what I wanted to get into and don't give up because of my aggressive tone in the first place. Am 26.10.15 um 23:53 schrieb Peter Uhnák: On Mon, Oct 26, 2015 at 8:27 AM, jtuc...@objektfabrik.de

Re: [Pharo-users] TestAsserter>>assertCollection:hasSameElements:

2015-10-26 Thread Peter Uhnák
On Mon, Oct 26, 2015 at 8:27 AM, jtuc...@objektfabrik.de < jtuc...@objektfabrik.de> wrote: > Am 25.10.15 um 16:33 schrieb Peter Uhnák: > > > assert:equals: it's just more typing than #= with no additional outcome >> > > I also disagree, but that may be also because maybe we write tests for > diff

Re: [Pharo-users] TestAsserter>>assertCollection:hasSameElements:

2015-10-26 Thread jtuc...@objektfabrik.de
Hi Peter, I just realize it is probably best to return to your initial post in order to not drift into D) ;-) Am 24.10.15 um 20:36 schrieb Peter Uhnák: bump? :) On Tue, Sep 29, 2015 at 12:57 AM, Peter Uhnák > wrote: How practical it is to do set-based comparis

Re: [Pharo-users] TestAsserter>>assertCollection:hasSameElements:

2015-10-24 Thread Peter Uhnák
bump? :) On Tue, Sep 29, 2015 at 12:57 AM, Peter Uhnák wrote: > How practical it is to do set-based comparison > in TestAsserter>>assertCollection:hasSameElements: ? > > For example #(1 1 2) has same elements as #(1 2) which may make sense for > sets, but not for bags. > > The main reason I was

[Pharo-users] TestAsserter>>assertCollection:hasSameElements:

2015-09-28 Thread Peter Uhnák
How practical it is to do set-based comparison in TestAsserter>>assertCollection:hasSameElements: ? For example #(1 1 2) has same elements as #(1 2) which may make sense for sets, but not for bags. The main reason I was using it is that in tests the expected collection may be created by hand, whi