Skip to content

Commit

Permalink
Issue #2 建立大數字測試案例
Browse files Browse the repository at this point in the history
  • Loading branch information
mouson committed Mar 20, 2019
1 parent f5f81b2 commit cb0ed30
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,18 @@ public function test_測試雙倍數列輸入負數應回傳兩倍負數()
$this->assertEquals($expected, $actual);
}

public function test_測試大數字應正確回傳兩倍數()
{
/** Arrange */
$target = new QuintupleSequenceCalculator();
$value = 100000;
/** Assume */
$expected = 500000;

/** Act */
$actual = $target->calculate($value);

/** Assert */
$this->assertEquals($expected, $actual);
}
}

0 comments on commit cb0ed30

Please sign in to comment.