Lines Matching refs:MakeDoubleNumAsFloat
12 float MakeDoubleNumAsFloat(const wchar_t* str) { in MakeDoubleNumAsFloat() function
20 EXPECT_EQ(0.0, MakeDoubleNumAsFloat(L"")); in TEST()
21 EXPECT_EQ(0.0, MakeDoubleNumAsFloat(L"0")); in TEST()
22 EXPECT_EQ(0.0, MakeDoubleNumAsFloat(L"0.")); in TEST()
23 EXPECT_EQ(0.0, MakeDoubleNumAsFloat(L"0.0")); in TEST()
24 EXPECT_EQ(0.0, MakeDoubleNumAsFloat(L"0.x")); in TEST()
25 EXPECT_EQ(7.0, MakeDoubleNumAsFloat(L"7.x")); in TEST()
26 EXPECT_FLOAT_EQ(0.54321f, MakeDoubleNumAsFloat(L".54321")); in TEST()
27 EXPECT_FLOAT_EQ(0.54321f, MakeDoubleNumAsFloat(L"0.54321")); in TEST()
28 EXPECT_FLOAT_EQ(0.54321f, MakeDoubleNumAsFloat(L"+0.54321")); in TEST()
29 EXPECT_FLOAT_EQ(0.54321f, MakeDoubleNumAsFloat(L" +0.54321")); in TEST()
30 EXPECT_FLOAT_EQ(-0.54321f, MakeDoubleNumAsFloat(L"-.54321")); in TEST()
31 EXPECT_FLOAT_EQ(-0.54321f, MakeDoubleNumAsFloat(L"-0.54321")); in TEST()
32 EXPECT_FLOAT_EQ(-0.54321f, MakeDoubleNumAsFloat(L" -0.54321")); in TEST()
33 EXPECT_FLOAT_EQ(-0.054321f, MakeDoubleNumAsFloat(L"-0.54321e-1")); in TEST()
34 EXPECT_FLOAT_EQ(-0.54321f, MakeDoubleNumAsFloat(L"-0.54321e0")); in TEST()
35 EXPECT_FLOAT_EQ(-5.4321f, MakeDoubleNumAsFloat(L"-0.54321e1")); in TEST()