Skip to content

Commit 3866848

Browse files
committed
Fix broken bcadd and bccomp tests
1 parent b1a89f3 commit 3866848

File tree

4 files changed

+52
-6
lines changed

4 files changed

+52
-6
lines changed

ext/bcmath/tests/bcadd_variation002.phpt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@ echo bcadd("eeee", "eeeefff")."\n";
1010
echo bcadd("eeee", "%%%$^&&*(*())")."\n";
1111
echo bcadd("eeee", "~!@@##^*()_")."\n";
1212
?>
13-
--EXPECT--
13+
--EXPECTF--
14+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
15+
16+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
1417
0
18+
19+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
20+
21+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
1522
0
23+
24+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
25+
26+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
1627
0

ext/bcmath/tests/bcadd_variation003.phpt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,27 @@ echo bcadd("-2.1", "~!@@##^*()_")."\n";
1515
echo bcadd("~!@@##^*()_", "2.1")."\n";
1616
echo bcadd("~!@@##^*()_", "-2.1")."\n";
1717
?>
18-
--EXPECT--
18+
--EXPECTF--
19+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
1920
2
21+
22+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
2023
-2
24+
25+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
2126
2
27+
28+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
2229
-2
30+
31+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
2332
2
33+
34+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
2435
-2
36+
37+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
2538
2
39+
40+
Warning: bcadd(): bcmath function argument is not well-formed in %s on line %d
2641
-2

ext/bcmath/tests/bccomp_variation003.phpt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,20 @@ bcmath.scale=0
88
<?php
99
echo bccomp("ssssssssss2", "!@@#$%^&*(()")."\n";
1010
echo bccomp("1@#$%%%^&*", "!@@#$%^&*(()")."\n";
11-
echo bccomp("!@#$%^&*()_+", "!@@#$%^&*(()");
11+
echo bccomp("!@#$%^&*()_+", "!@@#$%^&*(()")."\n";
1212
?>
13-
--EXPECT--
13+
--EXPECTF--
14+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
15+
16+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
1417
0
18+
19+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
20+
21+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
1522
0
23+
24+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
25+
26+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
1627
0

ext/bcmath/tests/bccomp_variation004.phpt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@ echo bccomp("2", "!@@#$%^&*(()")."\n";
1010
echo bccomp("!@@#$%^&*(()", "2")."\n";
1111
echo bccomp("!@@#$%^&*(()", "-2")."\n";
1212
echo bccomp("1@#$%%%^&*", "2.1")."\n";
13-
echo bccomp("-2.1", "1@#$%%%^&*");
13+
echo bccomp("-2.1", "1@#$%%%^&*")."\n";
1414
?>
15-
--EXPECT--
15+
--EXPECTF--
16+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
1617
1
18+
19+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
1720
-1
21+
22+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
1823
1
24+
25+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
1926
-1
27+
28+
Warning: bccomp(): bcmath function argument is not well-formed in %s on line %d
2029
-1

0 commit comments

Comments
 (0)