Mantis - Squeak
Viewing Issue Advanced Details
3538 Collections trivial always 05-05-06 11:20 07-14-06 12:28
Damien Cassou AMD Sempron 3000+  
GNU/Linux Kubuntu 5.10  
normal 2.6.12-10  
closed 3.9  
3.9b7029 fixed  
none    
none 3.9  
0003538: DictionaryTest is red (testKeyAtValue)
In DictionaryTest>>testKeyAtValue,

the line:
self assert: (dict keyAtValue: 1) = #c.

should become:
self assert: (dict keyAtValue: 1) = #a.

Dictionary>>#keyAtValue: returns the first key on which the value is equal to the parameter.

Notes
(0004871)
ducasse   
05-05-06 14:21   
can you check if this test was working in 38 because I thought so.
(0004872)
Damien Cassou   
05-05-06 14:56   
This test did not exist in 3.8. But the result is correct :

dict := Dictionary new.

dict at: $a put: 1.
dict at: $b put: 2.
dict at: $c put: 1.

dict keyAtValue: 1 => $a
(0005893)
MarcusDenker   
07-14-06 12:28   
test does not fail in 7042