[squeak-dev] The Trunk: KernelTests-codefrau.395.mcz
Vanessa Freudenberg
vanessa at codefrau.net
Mon Apr 5 21:37:55 UTC 2021
Btw, I only fixed the test.
Which makes the test fail in trunk.
Eliot must have had a reason to create the test so Someone™️ should
probably look at that. I probably don't have time for that soon.
- Vanessa -
On Sat, Apr 3, 2021 at 12:06 PM <commits at source.squeak.org> wrote:
> 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!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210405/507acdd8/attachment.html>
More information about the Squeak-dev
mailing list
|