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

commits at source.squeak.org commits at source.squeak.org
Sat Jan 29 19:45:37 UTC 2022

A new version of Tests was added to project The Inbox:

==================== 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') -----
  	"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