From e7ca21f15c0b9ada1e6545fcfce630477339e08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Zaprza=C5=82ek?= Date: Sat, 8 Jan 2022 22:23:50 +0100 Subject: [PATCH] Tweak test coverage --- spec/PlainNumberSpec.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/PlainNumberSpec.php b/spec/PlainNumberSpec.php index 3a795cd..b3d5f47 100644 --- a/spec/PlainNumberSpec.php +++ b/spec/PlainNumberSpec.php @@ -4,11 +4,12 @@ use DivisionByZeroError; use GW\Value\Numberable; +use GW\Value\Numberable\Add; use GW\Value\Numberable\Divide; use GW\Value\Numberable\JustFloat; use GW\Value\Numberable\JustInteger; -use GW\Value\Numberable\JustNumber; -use GW\Value\Numberable\Add; +use GW\Value\Numberable\JustNumbers; +use GW\Value\Numberable\Sum; use GW\Value\Numberable\Zero; use GW\Value\PlainNumber; use PhpSpec\ObjectBehavior; @@ -377,7 +378,7 @@ function it_calculates_custom_formula() $this->beConstructedWith(new JustInteger(100)); $formula = fn(int $number): Numberable => new Divide( - new Add(new JustNumber($number), new JustInteger(700)), + new Sum(new JustNumbers($number, 300, 400)), new JustInteger(2) );