[squeak-dev] The Trunk: Tests-cwp.202.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Apr 29 07:00:34 UTC 2013
Colin Putney uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-cwp.202.mcz
==================== Summary ====================
Name: Tests-cwp.202
Author: cwp
Time: 28 April 2013, 11:57:31.042 pm
UUID: 30b3fc75-5af9-4c3f-ad99-351b35002d9a
Ancestors: Tests-cwp.201
Use aliases for classes imported with a different name, rather than copying the class binding.
=============== Diff against Tests-cwp.201 ===============
Item was added:
+ ----- Method: ClassBindingTest>>testAsBindingAlias (in category 'as yet unclassified') -----
+ testAsBindingAlias
+ | binding imported |
+ binding := ClassBinding key: #Griffle value: value.
+ imported := binding asBinding: #Plonk.
+ self assert: imported class == Alias!
Item was added:
+ ----- Method: ClassBindingTest>>testAsBindingWrite (in category 'as yet unclassified') -----
+ testAsBindingWrite
+ | binding imported |
+ binding := ClassBinding key: #Griffle value: value.
+ imported := binding asBinding: #Plonk.
+ self
+ should: [imported value: Object new]
+ raise: AttemptToWriteReadOnlyGlobal
+ !
More information about the Squeak-dev
mailing list
|