Updated test #1665

This commit is contained in:
Alexey Milovidov 2018-01-12 00:33:45 +03:00
parent ef8e1dc9f7
commit d33ac0ea15
3 changed files with 2 additions and 5 deletions

View File

@ -374,8 +374,7 @@ void assertInfinity(ReadBuffer & buf);
void assertNaN(ReadBuffer & buf); void assertNaN(ReadBuffer & buf);
/// Rough: not exactly nearest machine representable number is returned. /// Some garbage may be successfully parsed, examples: '--1' parsed as '1'.
/// Some garbage may be successfully parsed, examples: '.' parsed as 0; 123Inf parsed as inf.
template <typename T, typename ReturnType> template <typename T, typename ReturnType>
ReturnType readFloatTextImpl(T & x, ReadBuffer & buf) ReturnType readFloatTextImpl(T & x, ReadBuffer & buf)
{ {

View File

@ -1 +1 @@
inf -inf inf -inf inf -inf nan nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0 inf -inf inf -inf inf -inf nan nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0 inf -inf inf -inf inf -inf nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0 inf -inf inf -inf inf -inf nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0

View File

@ -11,7 +11,6 @@ toFloat64('NAN'),
toFloat64('-NAN'), toFloat64('-NAN'),
toFloat64('NaN'), toFloat64('NaN'),
toFloat64('-NaN'), toFloat64('-NaN'),
toFloat64('+NaN'),
toFloat64OrZero('in'), toFloat64OrZero('in'),
toFloat64OrZero('-in'), toFloat64OrZero('-in'),
@ -39,7 +38,6 @@ toFloat32('NAN'),
toFloat32('-NAN'), toFloat32('-NAN'),
toFloat32('NaN'), toFloat32('NaN'),
toFloat32('-NaN'), toFloat32('-NaN'),
toFloat32('+NaN'),
toFloat32OrZero('in'), toFloat32OrZero('in'),
toFloat32OrZero('-in'), toFloat32OrZero('-in'),