Skip to content

Commit

Permalink
This Commit Test Failure 此 Commit 測試錯誤
Browse files Browse the repository at this point in the history
  • Loading branch information
mouson committed Mar 20, 2019
1 parent 3475fd5 commit de98d8c
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,22 @@ public function test_測試雙倍數列輸入負數應回傳兩倍負數()
$target = new DoubleSequenceCalculator();
$value = -2;
/** Assume */
$expected = -4;
$expected = 4;

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

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

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

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

0 comments on commit de98d8c

Please sign in to comment.