Skip to content

Commit 290076d

Browse files
author
Raghubansh Kumar
committed
fix tests: better float values
1 parent 00926c8 commit 290076d

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

ext/standard/tests/strings/vsprintf_variation1.phpt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ $values = array(
4545
// float data
4646
10.5,
4747
-10.5,
48-
10.5e10,
49-
10.6E-10,
48+
10.1234567e10,
49+
10.7654321E-10,
5050
.5,
5151

5252
// array data
@@ -120,10 +120,10 @@ string(4) "10.5"
120120
string(5) "-10.5"
121121

122122
-- Iteration 7 --
123-
string(12) "105000000000"
123+
string(12) "101234567000"
124124

125125
-- Iteration 8 --
126-
string(7) "1.06E-9"
126+
string(13) "1.07654321E-9"
127127

128128
-- Iteration 9 --
129129
string(3) "0.5"
@@ -189,7 +189,6 @@ string(0) ""
189189
-- Iteration 26 --
190190
string(%d) "Resource id #%d"
191191
Done
192-
193192
--UEXPECTF--
194193
*** Testing vsprintf() : with unexpected values for format argument ***
195194

@@ -212,10 +211,10 @@ unicode(4) "10.5"
212211
unicode(5) "-10.5"
213212

214213
-- Iteration 7 --
215-
unicode(12) "105000000000"
214+
unicode(12) "101234567000"
216215

217216
-- Iteration 8 --
218-
unicode(7) "1.06E-9"
217+
unicode(13) "1.07654321E-9"
219218

220219
-- Iteration 9 --
221220
unicode(3) "0.5"

ext/standard/tests/strings/vsprintf_variation2.phpt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ $values = array(
4545
// float data
4646
10.5,
4747
-10.5,
48-
10.5e10,
49-
10.6E-10,
48+
10.1234567e10,
49+
10.7654321E-10,
5050
.5,
5151

5252
// null data
@@ -115,10 +115,10 @@ string(4) "10.5"
115115
string(5) "-10.5"
116116

117117
-- Iteration 7 --
118-
string(12) "105000000000"
118+
string(12) "101234567000"
119119

120120
-- Iteration 8 --
121-
string(7) "1.06E-9"
121+
string(13) "1.07654321E-9"
122122

123123
-- Iteration 9 --
124124
string(3) "0.5"
@@ -175,7 +175,6 @@ bool(false)
175175
-- Iteration 23 --
176176
string(%d) "Resource id #%d"
177177
Done
178-
179178
--UEXPECTF--
180179
*** Testing vsprintf() : with unexpected values for args argument ***
181180

@@ -198,10 +197,10 @@ unicode(4) "10.5"
198197
unicode(5) "-10.5"
199198

200199
-- Iteration 7 --
201-
unicode(12) "105000000000"
200+
unicode(12) "101234567000"
202201

203202
-- Iteration 8 --
204-
unicode(7) "1.06E-9"
203+
unicode(13) "1.07654321E-9"
205204

206205
-- Iteration 9 --
207206
unicode(3) "0.5"

0 commit comments

Comments
 (0)