[squeak-dev] The Trunk: Tests-jar.476.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jun 14 09:35:20 UTC 2022


Marcel Taeumel uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-jar.476.mcz

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

Name: Tests-jar.476
Author: jar
Time: 29 January 2022, 8:45:33.967173 pm
UUID: baedfdf3-299a-bf46-8ab5-61057c90b99c
Ancestors: Tests-ct.475

fix an error in my previous contribution; I used a class instead of an instance of an exception as an argument to #resignalAs:

The test worked because current implementation of #resignalAs allows it but using a class instead of an instance is not consistent with ANSI specification.

=============== Diff against Tests-ct.475 ===============

Item was changed:
  ----- Method: ExceptionTester>>doubleOuterResignalAsTest (in category 'tests') -----
  doubleOuterResignalAsTest
  	"ExceptionTester new doubleOuterResignalAsTest"
  
  	[[self doSomething.
  	MyResumableTestError signal.
  	self doYetAnotherThing]
  		on: MyResumableTestError
  		do: [:ex | ex outer. self doSomethingExceptional]. 
  	self doSomethingElse]
  		on: MyResumableTestError
+ 		do: [:ex | ex resignalAs: MyTestNotification new]
- 		do: [:ex | ex resignalAs: MyTestNotification]
  !



More information about the Squeak-dev mailing list