Re: [Pharo-project] how this test can be right

2009-01-16 Thread Lukas Renggli
I was never said that elements are iterate in a set the same way that they are added. That's just by chance that it works, because the hash of a SmallInteger is itself. As soon as the set starts to grow or as soon as you don't add the numbers in order the result will be different. I wouldn't

Re: [Pharo-project] how this test can be right

2009-01-16 Thread Stéphane Ducasse
Yeap. I will remove it. In the future I plant to certainly integrate the WADictionary with key order... I would like to have a really good collection library. But first the tests :) On Jan 16, 2009, at 9:22 AM, Lukas Renggli wrote: I was never said that elements are iterate in a set the same

[Pharo-project] how this test can be right

2009-01-15 Thread Stéphane Ducasse
testAsCommaString {OrderedCollection new. Set new.} do: [ :coll | self assert: coll asCommaString = ''. coll add: 1. self assert: coll asCommaString = '1'. coll add: 2; add: 3. self assert: