Skip to content

Commit

Permalink
Remove tests relying on PHP math expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Dec 5, 2023
1 parent 8d9f07f commit 33d3a74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/Support/NumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function testFractionStringFromFloat(string $expectedString, float $float
*/
public function decimalStringFloatsProvider(): array {
return [
['0.0', 0.0], ['0.125', 1/8], ['0.25', 1/4], ['0.5', 1/2],
['0.75', 3/4], ['1.0', 1.0], ['1.25', 1.25], ['1.5', 1.5],
['0.0', 0.0], ['0.125', 0.125], ['0.25', 0.25], ['0.5', 0.5],
['0.75', 0.75], ['1.0', 1.0], ['1.25', 1.25], ['1.5', 1.5],
['2.5', 2.5], ['2.75', 2.75],
];
}
Expand All @@ -62,9 +62,9 @@ public function decimalStringFloatsProvider(): array {
*/
public function fractionStringFloatsProvider(): array {
return [
['0', 0.0], ['1/8', 1/8], ['1/4', 1/4], ['1/3', 1/3], ['1/2', 1/2],
['2/3', 2/3], ['3/4', 3/4], ['1', 1.0], ['1 1/4', 1.25], ['1 1/3', 1 + 1/3],
['1 1/2', 1.5], ['1 2/3', 1 + 2/3], ['2 1/2', 2.5], ['2 3/4', 2.75],
['0', 0.0], ['1/8', 0.125], ['1/4', 0.25], ['1/2', 0.5],
['3/4', 0.75], ['1', 1.0], ['1 1/4', 1.25],
['1 1/2', 1.5], ['2 1/2', 2.5], ['2 3/4', 2.75],
];
}
}

0 comments on commit 33d3a74

Please sign in to comment.