Skip to content

Commit

Permalink
Issue #2 測試:數值運算初始運算
Browse files Browse the repository at this point in the history
  • Loading branch information
mouson committed Jan 9, 2017
1 parent f4aa104 commit 6e1c445
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,19 @@ public function test_物件產生後應可以取得物件名稱()
$this->assertEquals($expected, $actual);
}

public function test_測試雙倍數列輸入0應回傳0()
{
/** Arrange */
$target = new QuintupleSequenceCalculator();
$value = 0;
/** Assume */
$expected = 0;

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

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

}

0 comments on commit 6e1c445

Please sign in to comment.