[squeak-dev] The Inbox: Tests-ct.490.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Jun 12 15:27:47 UTC 2022
A new version of Tests was added to project The Inbox:
http://source.squeak.org/inbox/Tests-ct.490.mcz
==================== Summary ====================
Name: Tests-ct.490
Author: ct
Time: 12 June 2022, 5:27:44.866094 pm
UUID: 1de88f51-c6df-734c-a726-0b7c9bd92e20
Ancestors: Tests-mt.489
Tests resignaling an exception. Complements Kernel-ct.1481.
=============== Diff against Tests-mt.489 ===============
Item was added:
+ ----- Method: ExceptionTests>>testSignalAgain (in category 'tests - ExceptionTester') -----
+ testSignalAgain
+
+ | exception |
+ [MyTestError new additionalState: self; signal: self selector]
+ on: MyTestError do: [:ex | exception := ex].
+
+ self
+ should: [exception signal]
+ raise: MyTestError
+ withExceptionDo: [:ex |
+ self assert: exception messageText equals: ex messageText.
+ self assert: exception additionalState equals: ex additionalState].!
Item was changed:
Error subclass: #MyTestError
+ instanceVariableNames: 'additionalState'
- instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Tests-Exceptions'!
Item was added:
+ ----- Method: MyTestError>>additionalState (in category 'accessing') -----
+ additionalState
+
+ ^ additionalState!
Item was added:
+ ----- Method: MyTestError>>additionalState: (in category 'accessing') -----
+ additionalState: anObject
+
+ additionalState := anObject.!
More information about the Squeak-dev
mailing list
|