From 90c5b7c57e1df80523239a4854bf25bf1c680cb7 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Sat, 23 Dec 2023 15:13:30 +0800 Subject: [PATCH] * Fix unit test of metric module. --- .../execution/scale/count_of_invalid_story_in_execution.php | 2 +- .../test/calc/execution/scale/count_of_story_in_execution.php | 2 +- .../calc/execution/scale/count_of_valid_story_in_execution.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/metric/test/calc/execution/scale/count_of_invalid_story_in_execution.php b/module/metric/test/calc/execution/scale/count_of_invalid_story_in_execution.php index 44bb273747..d4410a7d0b 100755 --- a/module/metric/test/calc/execution/scale/count_of_invalid_story_in_execution.php +++ b/module/metric/test/calc/execution/scale/count_of_invalid_story_in_execution.php @@ -20,4 +20,4 @@ $calc = $metric->calcMetric(__FILE__); r(count($calc->getResult())) && p('') && e('6'); // 测试分组数。 -r($calc->getResult(array('project' => '4'))) && p('0:value') && e('0'); // 测试项目4。 +r($calc->getResult(array('project' => '4'))) && p('0:value') && e('4'); // 测试项目4。 diff --git a/module/metric/test/calc/execution/scale/count_of_story_in_execution.php b/module/metric/test/calc/execution/scale/count_of_story_in_execution.php index f2a53ac3b2..ac700ea81e 100755 --- a/module/metric/test/calc/execution/scale/count_of_story_in_execution.php +++ b/module/metric/test/calc/execution/scale/count_of_story_in_execution.php @@ -20,4 +20,4 @@ $calc = $metric->calcMetric(__FILE__); r(count($calc->getResult())) && p('') && e('6'); // 测试分组数。 -r($calc->getResult(array('project' => '4'))) && p('0:value') && e('0'); // 测试项目2。 +r($calc->getResult(array('project' => '4'))) && p('0:value') && e('10'); // 测试项目2。 diff --git a/module/metric/test/calc/execution/scale/count_of_valid_story_in_execution.php b/module/metric/test/calc/execution/scale/count_of_valid_story_in_execution.php index 50a29306d2..7734df3a5e 100755 --- a/module/metric/test/calc/execution/scale/count_of_valid_story_in_execution.php +++ b/module/metric/test/calc/execution/scale/count_of_valid_story_in_execution.php @@ -20,4 +20,4 @@ $calc = $metric->calcMetric(__FILE__); r(count($calc->getResult())) && p('') && e('6'); // 测试分组数。 -r($calc->getResult(array('project' => '4'))) && p('0:value') && e('0'); // 测试项目4。 +r($calc->getResult(array('project' => '4'))) && p('0:value') && e('6'); // 测试项目4。