[Pkg] The Trunk: KernelTests-eem.229.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Jul 24 22:33:16 UTC 2012
Eliot Miranda uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-eem.229.mcz
==================== Summary ====================
Name: KernelTests-eem.229
Author: eem
Time: 24 July 2012, 3:32:55.347 pm
UUID: 5d424375-1905-4a05-9131-2124f8c78103
Ancestors: KernelTests-eem.228
Fix CompiledMethodTest>>testCopyWithTrailerBytes for
Kernel-eem.708 (fix to equivalentTo:).
=============== Diff against KernelTests-eem.228 ===============
Item was changed:
----- Method: CompiledMethodTest>>testCopyWithTrailerBytes (in category 'tests - copying') -----
testCopyWithTrailerBytes
<pragma: #pragma>
| method copy |
method := thisContext method.
self assert: method pragmas notEmpty.
copy := method copyWithTempNames: #('m' 'c').
+ self assert: (method equivalentTo: copy).
- self deny: (method equivalentTo: copy). "equivalentTo: decompiles; since temps differ, equivalentTo: should be false."
self deny: method = copy. "copyWithTempNames: changes the length of a method so these are no longer equal."
self assert: method symbolic = copy symbolic. "but their bytecode should be the same"
self assert: method ~~ copy.
method pragmas do:
[:p|
self assert: p method == method].
copy pragmas do:
[:p|
self assert: p method == copy]!
More information about the Packages
mailing list