Skip to content

Commit dec1527

Browse files
committed
Reduce precision on trig tests
1 parent 98d3003 commit dec1527

File tree

2 files changed

+28
-24
lines changed

2 files changed

+28
-24
lines changed

ext/standard/tests/math/acosh_basiclong_64bit.phpt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Test acosh function : 64bit long tests
44
<?php
55
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
66
?>
7+
--INI--
8+
serialize_precision=14
79
--FILE--
810
<?php
911

@@ -27,31 +29,31 @@ foreach ($longVals as $longVal) {
2729
?>
2830
--EXPECT--
2931
--- testing: 9223372036854775807 ---
30-
float(44.3614195558365)
32+
float(44.361419555836)
3133
--- testing: -9223372036854775808 ---
3234
float(NAN)
3335
--- testing: 2147483647 ---
34-
float(22.180709777452588)
36+
float(22.180709777453)
3537
--- testing: -2147483648 ---
3638
float(NAN)
3739
--- testing: 9223372034707292160 ---
38-
float(44.36141955560367)
40+
float(44.361419555604)
3941
--- testing: -9223372034707292160 ---
4042
float(NAN)
4143
--- testing: 2147483648 ---
42-
float(22.18070977791825)
44+
float(22.180709777918)
4345
--- testing: -2147483649 ---
4446
float(NAN)
4547
--- testing: 4294967294 ---
46-
float(22.87385695801253)
48+
float(22.873856958013)
4749
--- testing: 4294967295 ---
48-
float(22.873856958245362)
50+
float(22.873856958245)
4951
--- testing: 4294967293 ---
50-
float(22.8738569577797)
52+
float(22.87385695778)
5153
--- testing: 9223372036854775806 ---
52-
float(44.3614195558365)
54+
float(44.361419555836)
5355
--- testing: 9.2233720368548E+18 ---
54-
float(44.3614195558365)
56+
float(44.361419555836)
5557
--- testing: -9223372036854775807 ---
5658
float(NAN)
5759
--- testing: -9.2233720368548E+18 ---

ext/standard/tests/math/asinh_basiclong_64bit.phpt

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Test asinh function : 64bit long tests
44
<?php
55
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
66
?>
7+
--INI--
8+
serialize_precision=14
79
--FILE--
810
<?php
911

@@ -27,32 +29,32 @@ foreach ($longVals as $longVal) {
2729
?>
2830
--EXPECT--
2931
--- testing: 9223372036854775807 ---
30-
float(44.3614195558365)
32+
float(44.361419555836)
3133
--- testing: -9223372036854775808 ---
32-
float(-44.3614195558365)
34+
float(-44.361419555836)
3335
--- testing: 2147483647 ---
34-
float(22.180709777452588)
36+
float(22.180709777453)
3537
--- testing: -2147483648 ---
36-
float(-22.18070977791825)
38+
float(-22.180709777918)
3739
--- testing: 9223372034707292160 ---
38-
float(44.36141955560367)
40+
float(44.361419555604)
3941
--- testing: -9223372034707292160 ---
40-
float(-44.36141955560367)
42+
float(-44.361419555604)
4143
--- testing: 2147483648 ---
42-
float(22.18070977791825)
44+
float(22.180709777918)
4345
--- testing: -2147483649 ---
44-
float(-22.18070977838391)
46+
float(-22.180709778384)
4547
--- testing: 4294967294 ---
46-
float(22.87385695801253)
48+
float(22.873856958013)
4749
--- testing: 4294967295 ---
48-
float(22.873856958245362)
50+
float(22.873856958245)
4951
--- testing: 4294967293 ---
50-
float(22.8738569577797)
52+
float(22.87385695778)
5153
--- testing: 9223372036854775806 ---
52-
float(44.3614195558365)
54+
float(44.361419555836)
5355
--- testing: 9.2233720368548E+18 ---
54-
float(44.3614195558365)
56+
float(44.361419555836)
5557
--- testing: -9223372036854775807 ---
56-
float(-44.3614195558365)
58+
float(-44.361419555836)
5759
--- testing: -9.2233720368548E+18 ---
58-
float(-44.3614195558365)
60+
float(-44.361419555836)

0 commit comments

Comments
 (0)