<div dir="ltr">Copy&paste glitch in the method's comment... uploading a fixed version with the same ancestors in a moment. This one should be discarded.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 25. Sept. 2019 um 15:25 Uhr schrieb <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A new version of CollectionsTests was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/CollectionsTests-jr.319.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/CollectionsTests-jr.319.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: CollectionsTests-jr.319<br>
Author: jr<br>
Time: 25 September 2019, 3:24:53.304261 pm<br>
UUID: f44f2265-88ab-3042-b84f-bdb5bbd8b8ef<br>
Ancestors: CollectionsTests-dtl.318<br>
<br>
Add test for change in Collections-jr.855<br>
<br>
=============== Diff against CollectionsTests-dtl.318 ===============<br>
<br>
Item was added:<br>
+ ClassTestCase subclass: #WeakKeyDictionaryTest<br>
+       instanceVariableNames: ''<br>
+       classVariableNames: ''<br>
+       poolDictionaries: ''<br>
+       category: 'CollectionsTests-Weak'!<br>
<br>
Item was added:<br>
+ ----- Method: WeakKeyDictionaryTest>>testNilDoesNotInheritValueOfGarbageCollectedObject (in category 'tests') -----<br>
+ testNilDoesNotInheritValueOfGarbageCollectedObject<br>
+       "When objects are garbage collected, the keys in the names hash table become nil.<br>
+       This must not mislead the dictionary to answer that nil had one of the values of the former<br>
+       objects!!"<br>
+       | dictionary hashTable |<br>
+       dictionary := self targetClass new.<br>
+       "Craft a hash table where all keys were freed."<br>
+       hashTable := dictionary array.<br>
+       self assert: hashTable size > 0.<br>
+       hashTable replace: [:each | WeakKeyAssociation key: nil value: 1].<br>
+       self assert: (dictionary at: nil ifAbsent: []) isNil. "and not 1"!<br>
<br>
<br>
</blockquote></div>