<div dir="auto">Note that joined='a|a|a' would pass the test. A longer joined too.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 4 juin 2019 à 22:32,  <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chris Muller uploaded a new version of CollectionsTests to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/CollectionsTests-cmm.312.mcz" rel="noreferrer noreferrer" target="_blank">http://source.squeak.org/inbox/CollectionsTests-cmm.312.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: CollectionsTests-cmm.312<br>
Author: cmm<br>
Time: 4 June 2019, 3:32:07.434178 pm<br>
UUID: b63a7b5c-085b-4479-bc8d-8910d2afeeaf<br>
Ancestors: CollectionsTests-mt.311<br>
<br>
Additional test for #joinSeparatedBy: describes the expected behavior for unordered collections.<br>
<br>
=============== Diff against CollectionsTests-mt.311 ===============<br>
<br>
Item was added:<br>
+ ----- Method: CollectionTest>>testJoin (in category 'tests') -----<br>
+ testJoin<br>
+       | joined |<br>
+       self assert: #(a b c d e) join = 'abcde'.<br>
+       self assert: (#(a b c) joinSeparatedBy: '|') = 'a|b|c'.<br>
+       joined := (#(a b c) asSet) joinSeparatedBy: '|'.<br>
+       self assert: (#(2 4) allSatisfy: [ : index | (joined at: index) = $| ]).<br>
+       self assert: (#(1 3 5) allSatisfy: [ : index | 'abc' includes: (joined at: index) ])!<br>
<br>
Item was removed:<br>
- ----- Method: SequenceableCollectionTest>>testJoin (in category 'tests - converting') -----<br>
- testJoin<br>
- <br>
-       self assert: #(a b c d e) join = 'abcde'.<br>
-       self assert: (#(a b c) joinSeparatedBy: '|') = 'a|b|c'.!<br>
<br>
<br>
</blockquote></div>