Skip to content

Commit

Permalink
Added unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Feb 11, 2019
1 parent 9e0ea1b commit 4ebaca1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/CastIntTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ public function validManIntCases(): array
'expected' => 123];
$cases[] = ['value' => 0,
'expected' => 0];

// Float test cases.
$cases[] = ['value' => 0.0,
'expected' => 0];
$cases[] = ['value' => 123.0,
'expected' => 123];

Expand Down

0 comments on commit 4ebaca1

Please sign in to comment.