[Pkg] The Trunk: Tests-cwp.191.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Mar 12 01:12:54 UTC 2013


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

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

Name: Tests-cwp.191
Author: cwp
Time: 11 March 2013, 6:12:32.352 pm
UUID: 9eddc6aa-6bd6-4b58-a56f-d81d78e78ddc
Ancestors: Tests-cwp.190

Added a test for Environment>>at:put: handling undeclared variables properly.

=============== Diff against Tests-cwp.190 ===============

Item was added:
+ ----- Method: EnvironmentTest>>testAtPutDeclared (in category 'compatibility tests') -----
+ testAtPutDeclared
+ 	| binding |
+ 	env at: #Griffle put: Object new.
+ 	binding := env bindingOf: #Griffle.
+ 	env at: #Griffle put: value.
+ 	self assert: binding value == value!

Item was added:
+ ----- Method: EnvironmentTest>>testAtPutUndeclared (in category 'compatibility tests') -----
+ testAtPutUndeclared
+ 	| binding |
+ 	binding := env undeclared
+ 		at: #Griffle put: nil;
+ 		associationAt: #Griffle.
+ 	env at: #Griffle put: value.
+ 	self assert: binding value == value!

Item was removed:
- ----- Method: EnvironmentTest>>testImportSelfResolvesUndeclared (in category 'import tests') -----
- testImportSelfResolvesUndeclared
- 	| binding |
- 	env undeclared at: #Griffle put: nil.
- 	binding := env undeclared associationAt: #Griffle.
- 	env at: #Griffle put: value.
- 	env importSelf.
- 	self assert: (env bindingOf: #Griffle) == binding.
- 	self assert: (env valueOf: #Griffle) == value!



More information about the Packages mailing list