The Trunk: Tests-cwp.293.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tests-cwp.293.mcz

commits-2
Colin Putney uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-cwp.293.mcz

==================== Summary ====================

Name: Tests-cwp.293
Author: cwp
Time: 29 March 2014, 9:52:19.854 pm
UUID: f0961064-5eda-45fe-bdbb-6a907c0711f7
Ancestors: Tests-cwp.292

Make sure globals are properly destroyed along with their environment.

=============== Diff against Tests-cwp.292 ===============

Item was added:
+ ----- Method: EnvironmentTest>>testDestroyedImportIsUndeclared (in category 'observation tests') -----
+ testDestroyedImportIsUndeclared
+ | foreign |
+ foreign := Environment withName: #Foreign.
+ foreign exportSelf.
+ foreign at: #Griffle put: value.
+ env from: foreign import: #Griffle.
+ foreign destroy.
+ self assert: (env bindingOf: #Griffle) isNil.
+ self assert: (env isUndeclared: #Griffle).!