The Trunk: Tests-ar.108.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-ar.108.mcz

commits-2
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'.
+ !