Skip to content

Commit

Permalink
Merge pull request #76 from ba-st/issue_75
Browse files Browse the repository at this point in the history
Improve test portabiltiy so it also works in VAST
  • Loading branch information
gcotelli authored Oct 31, 2022
2 parents 65eeaed + 06bc775 commit b13c72c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ExceptionHandlingSystemTest >> testCatchingSetsOfExceptions [

| result |

result := [ 1 / 0 + Warning signal ]
result := [ ZeroDivide signal + Warning signal ]
on: Warning , ZeroDivide
do: [ :ex | ex resume: 1 ].

Expand All @@ -46,7 +46,7 @@ ExceptionHandlingSystemTest >> testCatchingSetsOfExceptionsWithHierarchy [

| result |

result := [ 1 / 0 + Warning signal ]
result := [ ZeroDivide signal + Warning signal ]
on: Notification , Error
do: [ :ex | ex resume: 1 ].

Expand Down Expand Up @@ -87,13 +87,13 @@ ExceptionHandlingSystemTest >> testExceptionSetsConcatenation [

| result |

result := [ 1 / 0 + Warning signal ]
result := [ ZeroDivide signal + Warning signal ]
on: Warning , ZeroDivide , ( MessageNotUnderstood , Error )
do: [ :ex | ex resume: 1 ].

self assert: result equals: 2.

result := [ 1 / 0 + Warning signal ]
result := [ ZeroDivide signal + Warning signal ]
on: MessageNotUnderstood , Error , ( Warning , ZeroDivide )
do: [ :ex | ex resume: 1 ].

Expand Down

0 comments on commit b13c72c

Please sign in to comment.