From e14cffd6ae8071a6d47506537d675d265b4a630a Mon Sep 17 00:00:00 2001 From: Durieux Pol Date: Mon, 15 Apr 2024 14:33:47 +0200 Subject: [PATCH] adapt tests to the higher number of mutants --- src/MuTalk-Tests/MTFixedNumberOfMutantsBudgetTest.class.st | 4 ++-- src/MuTalk-Tests/MTPercentageOfMutantsBudgetTest.class.st | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MuTalk-Tests/MTFixedNumberOfMutantsBudgetTest.class.st b/src/MuTalk-Tests/MTFixedNumberOfMutantsBudgetTest.class.st index dd0d9ea4..7d7b4118 100644 --- a/src/MuTalk-Tests/MTFixedNumberOfMutantsBudgetTest.class.st +++ b/src/MuTalk-Tests/MTFixedNumberOfMutantsBudgetTest.class.st @@ -14,10 +14,10 @@ MTFixedNumberOfMutantsBudgetTest >> runAnalysisForFixedNumberOfMutants: aNumber { #category : 'tests' } MTFixedNumberOfMutantsBudgetTest >> testEvaluateAllMutantsWithConstraintGreaterThanActualNumberOfMutations [ - self runAnalysisForFixedNumberOfMutants: 50. + self runAnalysisForFixedNumberOfMutants: 100. self assert: analysis generalResult numberOfEvaluatedMutants - equals: 25 + equals: 96 ] { #category : 'tests' } diff --git a/src/MuTalk-Tests/MTPercentageOfMutantsBudgetTest.class.st b/src/MuTalk-Tests/MTPercentageOfMutantsBudgetTest.class.st index 77ea5f85..d267406e 100644 --- a/src/MuTalk-Tests/MTPercentageOfMutantsBudgetTest.class.st +++ b/src/MuTalk-Tests/MTPercentageOfMutantsBudgetTest.class.st @@ -45,8 +45,8 @@ MTPercentageOfMutantsBudgetTest >> testEvaluateZeroPercentOfMutantsWithZeroPerce { #category : 'tests' } MTPercentageOfMutantsBudgetTest >> testExactPercentageOfMutants [ - self runAnalysisForPercentageOfMutants: 20. - self assert: self percentageOfEvaluatedMutants equals: 20 + self runAnalysisForPercentageOfMutants: 25. + self assert: self percentageOfEvaluatedMutants equals: 25 ] { #category : 'tests' } @@ -56,5 +56,5 @@ MTPercentageOfMutantsBudgetTest >> testNonExactPercentageOfMutants [ self assert: self percentageOfEvaluatedMutants >= 21. self assert: analysis generalResult numberOfEvaluatedMutants - equals: 6 + equals: 21 ]