[Pkg] The Trunk: Tests-ar.108.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jan 8 19:29:44 UTC 2011


Andreas Raab uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-ar.108.mcz

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

Name: Tests-ar.108
Author: ar
Time: 8 January 2011, 8:29:27.664 pm
UUID: 3ebacde2-d19f-2843-93bf-dd3f08b72e7d
Ancestors: Tests-ul.107

Add a test documenting an issue with nested exception handlers.

=============== Diff against Tests-ul.107 ===============

Item was added:
+ ----- Method: ExceptionTests>>testHandlerFromAction (in category 'testing-outer') -----
+ testHandlerFromAction
+ 	"A test ensuring that nested exceptions work as expected."
+ 
+ 	| result |
+ 	result := [
+ 		[
+ 			[self error: 'trigger error'] on: ZeroDivide do: [ :ex | 'inner' ]
+ 		] on: Error do: [ :ex | 3 / 0 ]
+ 	] on: ZeroDivide do: [ :ex | 'outer' ].
+ 	self assert: result = 'outer'.
+ !



More information about the Packages mailing list