[squeak-dev] The Trunk: KernelTests-codefrau.395.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Apr 3 19:06:04 UTC 2021
Vanessa Freudenberg uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-codefrau.395.mcz
==================== Summary ====================
Name: KernelTests-codefrau.395
Author: codefrau
Time: 3 April 2021, 12:06:03.17026 pm
UUID: 062e8b73-a62e-46ce-af80-0dbb34c2f8dc
Ancestors: KernelTests-mt.394
Fix typo in CompiledMethodComparisonTest.
=============== Diff against KernelTests-mt.394 ===============
Item was changed:
----- Method: CompiledMethodComparisonTest>>testHash (in category 'tests') -----
testHash
<timeout: 120>
| ai |
ai := CompiledMethod allInstances.
"We assume here that if two CompiledMethods are equal then they have the same size and header."
(ai groupBy: [ :method | { method size. method header } ]) values
replace: [ :each | each asArray ];
do: [ :methods |
1 to: methods size do: [ :i |
i to: methods size do: [ :j |
(methods at: i) = (methods at: j) ifTrue: [
+ self assert: (methods at: i) hash equals: (methods at: j) hash ] ] ] ]
- self assert: (methods at: i) hash equals: (methods at: i) hash ] ] ] ]
displayingProgress: 'Testing hashes'.
self assert: (ai collect: [ :cm | cm hash ] as: Set) size * 2 >= ai asSet size!
More information about the Squeak-dev
mailing list
|