Skip to content

Commit

Permalink
Tweak test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dazet committed Jan 8, 2022
1 parent 68ab3e9 commit e7ca21f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/PlainNumberSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
);

Expand Down

0 comments on commit e7ca21f

Please sign in to comment.