]> granicus.if.org Git - php/commitdiff
Drop non-well formed numeric strings from math function tests
authorGeorge Peter Banyard <girgias@php.net>
Fri, 26 Jun 2020 19:14:24 +0000 (21:14 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Sun, 28 Jun 2020 17:32:11 +0000 (19:32 +0200)
17 files changed:
ext/standard/tests/math/acos_variation.phpt
ext/standard/tests/math/acosh_variation.phpt
ext/standard/tests/math/asin_variation.phpt
ext/standard/tests/math/asinh_variation.phpt
ext/standard/tests/math/atan_variation.phpt
ext/standard/tests/math/atanh_variation.phpt
ext/standard/tests/math/cos_variation.phpt
ext/standard/tests/math/cosh_variation.phpt
ext/standard/tests/math/deg2rad_variation.phpt
ext/standard/tests/math/hypot_basic.phpt
ext/standard/tests/math/log10_variation.phpt
ext/standard/tests/math/rad2deg_variation.phpt
ext/standard/tests/math/sin_variation.phpt
ext/standard/tests/math/sinh_variation.phpt
ext/standard/tests/math/sqrt_variation.phpt
ext/standard/tests/math/tan_variation.phpt
ext/standard/tests/math/tanh_variation.phpt

index 88b035d0bf3a1ebaa2366a7998ab1f266d5ca679..163487d99fd54d07400230780e25e11400a88266 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(NAN)
 float(NAN)
 float(NAN)
@@ -43,9 +42,6 @@ float(NAN)
 float(NAN)
 float(NAN)
 float(NAN)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(NAN)
 float(1.5707963267948966)
 float(0)
 float(1.5707963267948966)
index 345a5f19cda7a0f04082af47e476a0be7caa1f7b..904316a99843d42e44629effbfe56c3ed3171d2a 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(3.8281684713331012)
 float(NAN)
 float(3.8475627390640357)
@@ -43,9 +42,6 @@ float(3.8281684713331012)
 float(3.8475627390640357)
 float(3.8475627390640357)
 float(7.600902209541989)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(7.600902209541989)
 float(NAN)
 float(0)
 float(NAN)
index f58e30306412c5c85500b0ef0f4b84f122dcbd21..323701c51a5d9e19480eee717f9dba92842fae9b 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(NAN)
 float(NAN)
 float(NAN)
@@ -43,9 +42,6 @@ float(NAN)
 float(NAN)
 float(NAN)
 float(NAN)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(NAN)
 float(0)
 float(1.5707963267948966)
 float(0)
index a2762233e7207c2b79e2c2f6992342dc4090817e..4958468064bd5fc96886dc45bc8959b39bec3d73 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(3.829113652)
 float(-3.829113652)
 float(3.848471992)
@@ -43,9 +42,6 @@ float(3.829113652)
 float(3.848471992)
 float(3.848471992)
 float(7.60090271)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(7.60090271)
 float(0)
 float(0.881373587)
 float(0)
index 35b0390b5a15c35ecc7bcb9b04436a3db9d34a92..88593c84debfb588e3cf3547d29b8ee3bcec2ee3 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(1.5273454314033659)
 float(-1.5273454314033659)
 float(1.528178224770569)
@@ -43,9 +42,6 @@ float(1.5273454314033659)
 float(1.528178224770569)
 float(1.528178224770569)
 float(1.5697963271282298)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(1.5697963271282298)
 float(0)
 float(0.7853981633974483)
 float(0)
index a03201825e2138e98578e5faae6b8c1bcda6dd55..fa71e206c8e0e26de93bac8f0bc423c204491110 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(NAN)
 float(NAN)
 float(NAN)
@@ -43,9 +42,6 @@ float(NAN)
 float(NAN)
 float(NAN)
 float(NAN)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(NAN)
 float(0)
 float(INF)
 float(0)
index abe2f8c23222c7185137167ba1309dedc94900d0..23af5e873bc8a2d9eea38963ac5651e6858b5f71 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(-0.5328330203)
 float(-0.5328330203)
 float(-0.1117112391)
@@ -43,9 +42,6 @@ float(-0.5328330203)
 float(-0.1117112391)
 float(-0.1117112391)
 float(0.5623790763)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(0.5623790763)
 float(1)
 float(0.5403023059)
 float(1)
index 6b0bf0a0c806432b2003336c59b58339e075d960..1a0a6b69e769a04c55fcf6bc1310d9b92e3e1037 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(4872401723)
 float(4872401723)
 float(7641446995)
@@ -43,9 +42,6 @@ float(4872401723)
 float(7641446995)
 float(7641446995)
 float(INF)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(INF)
 float(1)
 float(1.543080635)
 float(1)
index a9b9516efc6e2843a6fdbc4be134f541ea11584d..0d5d44626ff4807ea8fdc99745e444c7cea29510 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -43,9 +42,6 @@ float(0.40142572795869574)
 float(0.40927970959267024)
 float(0.40927970959267024)
 float(17.453292519943293)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(17.453292519943293)
 float(0)
 float(0.017453292519943295)
 float(0)
index 78bed909210150172fd3899caaac170b1a518460..29c8892846db5a74f2d0772ace977591dca77a55 100644 (file)
@@ -16,7 +16,6 @@ $valuesy = array(23,
                 "23",
                 "23.45",
                 "2.345e1",
-                "23abc",
                 null,
                 true,
                 false);
@@ -30,7 +29,6 @@ $valuesx = array(33,
                 "33",
                 "43.45",
                 "1.345e1",
-                "33abc",
                 null,
                 true,
                 false);
@@ -43,7 +41,7 @@ for ($i = 0; $i < count($valuesy); $i++) {
     }
 }
 ?>
---EXPECTF--
+--EXPECT--
 *** Testing hypot() : basic functionality ***
 
 Y:23 X:33 float(40.22437072223753)
@@ -64,10 +62,6 @@ Y:23 X:43.45 float(49.162002603636886)
 
 Y:23 X:1.345e1 float(26.64399557123518)
 
-Y:23 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
 Y:23 X: float(23)
 
 Y:23 X:1 float(23.021728866442675)
@@ -92,10 +86,6 @@ Y:-23 X:43.45 float(49.162002603636886)
 
 Y:-23 X:1.345e1 float(26.64399557123518)
 
-Y:-23 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
 Y:-23 X: float(23)
 
 Y:-23 X:1 float(23.021728866442675)
@@ -120,10 +110,6 @@ Y:23.45 X:43.45 float(49.37413290377868)
 
 Y:23.45 X:1.345e1 float(27.033405260898967)
 
-Y:23.45 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.48336077946099)
-
 Y:23.45 X: float(23.45)
 
 Y:23.45 X:1 float(23.47131227690518)
@@ -148,10 +134,6 @@ Y:-23.45 X:43.45 float(49.37413290377868)
 
 Y:-23.45 X:1.345e1 float(27.033405260898967)
 
-Y:-23.45 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.48336077946099)
-
 Y:-23.45 X: float(23.45)
 
 Y:-23.45 X:1 float(23.47131227690518)
@@ -176,10 +158,6 @@ Y:23 X:43.45 float(49.162002603636886)
 
 Y:23 X:1.345e1 float(26.64399557123518)
 
-Y:23 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
 Y:23 X: float(23)
 
 Y:23 X:1 float(23.021728866442675)
@@ -204,10 +182,6 @@ Y:23 X:43.45 float(49.162002603636886)
 
 Y:23 X:1.345e1 float(26.64399557123518)
 
-Y:23 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
 Y:23 X: float(23)
 
 Y:23 X:1 float(23.021728866442675)
@@ -232,10 +206,6 @@ Y:23 X:43.45 float(49.162002603636886)
 
 Y:23 X:1.345e1 float(26.64399557123518)
 
-Y:23 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
 Y:23 X: float(23)
 
 Y:23 X:1 float(23.021728866442675)
@@ -260,10 +230,6 @@ Y:23.45 X:43.45 float(49.37413290377868)
 
 Y:23.45 X:1.345e1 float(27.033405260898967)
 
-Y:23.45 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.48336077946099)
-
 Y:23.45 X: float(23.45)
 
 Y:23.45 X:1 float(23.47131227690518)
@@ -288,70 +254,12 @@ Y:2.345e1 X:43.45 float(49.37413290377868)
 
 Y:2.345e1 X:1.345e1 float(27.033405260898967)
 
-Y:2.345e1 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.48336077946099)
-
 Y:2.345e1 X: float(23.45)
 
 Y:2.345e1 X:1 float(23.47131227690518)
 
 Y:2.345e1 X: float(23.45)
 
-Y:23abc X:33 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
-Y:23abc X:-33 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
-Y:23abc X:33.45 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.594365372548936)
-
-Y:23abc X:-33.45 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.594365372548936)
-
-Y:23abc X:39 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(45.27692569068709)
-
-Y:23abc X:31 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(38.600518131237564)
-
-Y:23abc X:33 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
-Y:23abc X:43.45 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(49.162002603636886)
-
-Y:23abc X:1.345e1 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(26.64399557123518)
-
-Y:23abc X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(40.22437072223753)
-
-Y:23abc X: 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(23)
-
-Y:23abc X:1 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(23.021728866442675)
-
-Y:23abc X: 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(23)
-
 Y: X:33 float(33)
 
 Y: X:-33 float(33)
@@ -370,10 +278,6 @@ Y: X:43.45 float(43.45)
 
 Y: X:1.345e1 float(13.45)
 
-Y: X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(33)
-
 Y: X: float(0)
 
 Y: X:1 float(1)
@@ -398,10 +302,6 @@ Y:1 X:43.45 float(43.461505956420794)
 
 Y:1 X:1.345e1 float(13.48712348872064)
 
-Y:1 X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(33.015148038438355)
-
 Y:1 X: float(1)
 
 Y:1 X:1 float(1.4142135623730951)
@@ -426,10 +326,6 @@ Y: X:43.45 float(43.45)
 
 Y: X:1.345e1 float(13.45)
 
-Y: X:33abc 
-Notice: A non well formed numeric value encountered in %s on line %d
-float(33)
-
 Y: X: float(0)
 
 Y: X:1 float(1)
index 0795241471b1b498b478068ebee0af32ab0dea43..6e73cd7beafdf1162d5da59a23e0a4bc53d00003 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(1.3617278360175928)
 float(NAN)
 float(1.3701428470511021)
@@ -43,9 +42,6 @@ float(1.3617278360175928)
 float(1.3701428470511021)
 float(1.3701428470511021)
 float(3)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(3)
 float(-INF)
 float(0)
 float(-INF)
index 94a93396627a2238e8c86ee4f1aa77478f0edea3..122d5b2c13fbf61c778124f7ce39e3955a6fbca8 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(1317.8029288008934)
 float(-1317.8029288008934)
 float(1343.5860295817804)
@@ -43,9 +42,6 @@ float(1317.8029288008934)
 float(1343.5860295817804)
 float(1343.5860295817804)
 float(57295.77951308232)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(57295.77951308232)
 float(0)
 float(57.29577951308232)
 float(0)
index 0695c5c05bcb43251b852b6ba47838f99a315b2c..26801750f5306ac95f915345eea5cf5f38ff2161 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -43,9 +42,6 @@ float(-0.8462204042)
 float(-0.9937407102)
 float(-0.9937407102)
 float(0.8268795405)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(0.8268795405)
 float(0)
 float(0.8414709848)
 float(0)
index 4d5dbd1c4181a83f6088751067a19a323c3d1bc8..9f5c393c4a608bbb37f865adf4e6878d8834af92 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -43,9 +42,6 @@ float(4872401723)
 float(7641446995)
 float(7641446995)
 float(INF)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(INF)
 float(0)
 float(1.175201194)
 float(0)
index 0d7941aa3b8b4739e1815e6e40d66c0aca47ce3f..6486b00724cd3ce0ec33bc3569c1092470a1bc4c 100644 (file)
@@ -22,7 +22,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -45,9 +44,6 @@ float(4.795831523312719)
 float(4.8425200051213)
 float(4.8425200051213)
 float(31.622776601683793)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(31.622776601683793)
 float(0)
 float(1)
 float(0)
index 58b9cb6b1554cce0e5d115e8b04b976e2503e3c5..bd2fc1e80cd400af98895351010df6221b01add3 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -43,9 +42,6 @@ float(1.588153083)
 float(8.895619796)
 float(8.895619796)
 float(1.470324156)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(1.470324156)
 float(0)
 float(1.557407725)
 float(0)
index 035f4b15c77bf530b576708e605f5c14eba9f55d..aab33fea60d9c4d58df3d45f7c36ca2c55498273 100644 (file)
@@ -21,7 +21,6 @@ $values = array(23,
         "23.45",
         "2.345e1",
         "1000",
-        "1000ABC",
         null,
         true,
         false);
@@ -32,7 +31,7 @@ for ($i = 0; $i < count($values); $i++) {
 }
 
 ?>
---EXPECTF--
+--EXPECT--
 float(1)
 float(-1)
 float(1)
@@ -43,9 +42,6 @@ float(1)
 float(1)
 float(1)
 float(1)
-
-Notice: A non well formed numeric value encountered in %s on line %d
-float(1)
 float(0)
 float(0.7615941559557649)
 float(0)