Skip to content

Commit 812ef94

Browse files
committed
Fix tests
1 parent 2f45e9a commit 812ef94

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

src/MuTalk-Model/MTAnalysis.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ MTAnalysis >> run [
656656
do: [ :ex |
657657
self inform:
658658
'Your tests have Errors or Failures. Please correct them.'.
659-
ex return: false ]
659+
false ]
660660
]
661661

662662
{ #category : 'accessing' }

src/MuTalk-Tests/MTAnalysisTest.class.st

-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ MTAnalysisTest >> testExecutingInfiniteRecursionAnalysis [
111111
operators:
112112
{ MTReplaceIfTrueReceiverWithFalseOperator new }.
113113

114-
1halt.
115114
analysis run.
116115

117116
results := analysis mutantResults.

src/MuTalk-Tests/MTFakeInfiniteLoopForTest.class.st

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ Class {
55
#package : 'MuTalk-Tests'
66
}
77

8-
{ #category : 'not defined protocol' }
8+
{ #category : 'factorials' }
99
MTFakeInfiniteLoopForTest >> iterativeFactorial: anInt [
1010

1111
| factorial i |
1212
^ anInt = 1
1313
ifTrue: [ 1 ]
14-
ifFalse: [
14+
ifFalse: [
1515
factorial := 1.
1616
i := 2.
1717
"Use a whileTrue: so a mutation can introduce an infinite loop here"
18-
[ true ] whileTrue: [
18+
[ i <= anInt ] whileTrue: [
1919
factorial := factorial * i.
2020
i := i + 1 ].
2121
factorial ]

src/MuTalk-Tests/MTNullMutation.class.st

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ MTNullMutation >> runMutantStoppingOnError: aBoolean [
1717
^ TestResult new
1818
]
1919

20+
{ #category : 'running' }
21+
MTNullMutation >> runMutantStoppingOnError: aBoolean in: aMTMutantEvaluation [
22+
"I am a null mutation that does not run any tests and does not install any code.
23+
Return an empty test result"
24+
25+
^ MTMutantEvaluationResultSurvived new
26+
]
27+
2028
{ #category : 'tests' }
2129
MTNullMutation >> testCaseReferences: aCollection [
2230

0 commit comments

Comments
 (0)