forked from pharo-contributions/mutalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMTRemoveExceptionHandlerOperatorTest.class.st
45 lines (38 loc) · 1.31 KB
/
MTRemoveExceptionHandlerOperatorTest.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Class {
#name : 'MTRemoveExceptionHandlerOperatorTest',
#superclass : 'MTMutantOperatorTest',
#category : 'MuTalk-Tests',
#package : 'MuTalk-Tests'
}
{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> methodWithNoSenders [
"[x y] on:E do:[:e| b] "
OrderedCollection new do: [:elem | elem notNil]
]
{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> methodWithOneSender [
^[1 /0] on:Exception do:[:ex | Transcript show: 'error'].
]
{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> methodWithOneSenderModified [
^[1 /0] value
]
{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> methodWithTwoSenders [
[self error:'an error'] on:Exception do:[:ex | Transcript show: 'error'].
^[1 /0] on:Exception do:[:ex | Transcript show: 'error'].
]
{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> methodWithTwoSendersModifiedFirst [
[self error:'an error'.] value.
^[1 /0] on:Exception do:[:ex | Transcript show: 'error'].
]
{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> methodWithTwoSendersModifiedSecond [
[self error:'an error'] on:Exception do:[:ex | Transcript show: 'error'].
^[1 /0] value
]
{ #category : 'accessing' }
MTRemoveExceptionHandlerOperatorTest >> operator [
^ MTRemoveExceptionHandlerOperator new
]