Skip to content

Commit 92e5530

Browse files
committed
Fix test
1 parent 2d0f39c commit 92e5530

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

ext/bcmath/tests/number/operators/compare_with_invalid_types.phpt

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,21 @@ $values2 = [
1616
$value1 = new BcMath\Number('100.0000');
1717

1818
foreach ($values2 as [$value2, $type2]) {
19-
try {
20-
echo "========== with {$type2} ==========\n";
21-
echo "{$value1} > {$type2}: " . ($value1 > $value2 ? 'true' : 'false') . "\n";
22-
echo "{$value1} >= {$type2}: " . ($value1 >= $value2 ? 'true' : 'false') . "\n";
23-
echo "{$value1} == {$type2}: " . ($value1 == $value2 ? 'true' : 'false') . "\n";
24-
echo "{$value1} <= {$type2}: " . ($value1 <= $value2 ? 'true' : 'false') . "\n";
25-
echo "{$value1} < {$type2}: " . ($value1 < $value2 ? 'true' : 'false') . "\n";
19+
echo "========== with {$type2} ==========\n";
20+
echo "{$value1} > {$type2}: " . ($value1 > $value2 ? 'true' : 'false') . "\n";
21+
echo "{$value1} >= {$type2}: " . ($value1 >= $value2 ? 'true' : 'false') . "\n";
22+
echo "{$value1} == {$type2}: " . ($value1 == $value2 ? 'true' : 'false') . "\n";
23+
echo "{$value1} <= {$type2}: " . ($value1 <= $value2 ? 'true' : 'false') . "\n";
24+
echo "{$value1} < {$type2}: " . ($value1 < $value2 ? 'true' : 'false') . "\n";
2625

27-
echo "\ninversion\n";
28-
echo "{$type2} > {$value1}: " . ($value2 > $value1 ? 'true' : 'false') . "\n";
29-
echo "{$type2} >= {$value1}: " . ($value2 >= $value1 ? 'true' : 'false') . "\n";
30-
echo "{$type2} == {$value1}: " . ($value2 == $value1 ? 'true' : 'false') . "\n";
31-
echo "{$type2} <= {$value1}: " . ($value2 <= $value1 ? 'true' : 'false') . "\n";
32-
echo "{$type2} < {$value1}: " . ($value2 < $value1 ? 'true' : 'false') . "\n";
26+
echo "\ninversion\n";
27+
echo "{$type2} > {$value1}: " . ($value2 > $value1 ? 'true' : 'false') . "\n";
28+
echo "{$type2} >= {$value1}: " . ($value2 >= $value1 ? 'true' : 'false') . "\n";
29+
echo "{$type2} == {$value1}: " . ($value2 == $value1 ? 'true' : 'false') . "\n";
30+
echo "{$type2} <= {$value1}: " . ($value2 <= $value1 ? 'true' : 'false') . "\n";
31+
echo "{$type2} < {$value1}: " . ($value2 < $value1 ? 'true' : 'false') . "\n";
3332

34-
echo "\n";
35-
} catch (Throwable $e) {
36-
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
37-
}
33+
echo "\n";
3834
}
3935
?>
4036
--EXPECT--

0 commit comments

Comments
 (0)