From cb0ed30a1894a2f0bd33abf62ebf8674490b4f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E4=BD=91=E7=AB=B9?= Date: Tue, 10 Jan 2017 04:26:29 +0800 Subject: [PATCH] =?UTF-8?q?Issue=20#2=20=E5=BB=BA=E7=AB=8B=E5=A4=A7?= =?UTF-8?q?=E6=95=B8=E5=AD=97=E6=B8=AC=E8=A9=A6=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QuintupleSequenceCalculatorTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/Mouson/Helpers/SequenceCalculator/QuintupleSequenceCalculatorTest.php b/tests/Mouson/Helpers/SequenceCalculator/QuintupleSequenceCalculatorTest.php index 678ee49..1bc4939 100644 --- a/tests/Mouson/Helpers/SequenceCalculator/QuintupleSequenceCalculatorTest.php +++ b/tests/Mouson/Helpers/SequenceCalculator/QuintupleSequenceCalculatorTest.php @@ -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); + } }