Commit ea1b58b5 authored by Walt Ogburn's avatar Walt Ogburn Committed by Alexandre Julliard

Test zero exponents with and without signs.

parent f56618a2
......@@ -972,6 +972,20 @@ static void test_VarParseNumFromStr(void)
EXPECT(1,NUMPRS_EXPONENT,NUMPRS_EXPONENT,5,0,1);
EXPECT2(1,FAILDIG);
/* The same for zero exponents */
CONVERT("1e0", NUMPRS_EXPONENT);
EXPECT(1,NUMPRS_EXPONENT,NUMPRS_EXPONENT,3,0,0);
EXPECT2(1,FAILDIG);
/* Sign on a zero exponent doesn't matter */
CONVERT("1e+0", NUMPRS_EXPONENT);
EXPECT(1,NUMPRS_EXPONENT,NUMPRS_EXPONENT,4,0,0);
EXPECT2(1,FAILDIG);
CONVERT("1e-0", NUMPRS_EXPONENT);
EXPECT(1,NUMPRS_EXPONENT,NUMPRS_EXPONENT,4,0,0);
EXPECT2(1,FAILDIG);
/* Doesn't consume a real number exponent */
CONVERT("1e1.", NUMPRS_EXPONENT);
EXPECT(1,NUMPRS_EXPONENT,NUMPRS_EXPONENT,3,0,1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment