Remove tests relying on PHP math expressions

This commit is contained in:
Christopher C. Wells 2023-12-04 20:59:01 -08:00
parent 8d9f07f931
commit 33d3a7421f
1 changed files with 5 additions and 5 deletions

View File

@ -48,8 +48,8 @@ class NumberTest extends TestCase
*/
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],
];
}
@ -62,9 +62,9 @@ class NumberTest extends TestCase
*/
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],
];
}
}