Home
last modified time | relevance | path

Searched refs:TerminatedFloatToString (Results 1 – 1 of 1) sorted by relevance

/external/pdfium/core/fxcrt/
Dfx_string_unittest.cpp10 char* TerminatedFloatToString(float value, char* buf) { in TerminatedFloatToString() function
120 EXPECT_STREQ("0", TerminatedFloatToString(0.0f, buf)); in TEST()
121 EXPECT_STREQ("0", TerminatedFloatToString(-0.0f, buf)); in TEST()
123 TerminatedFloatToString(std::numeric_limits<float>::min(), buf)); in TEST()
125 "0", TerminatedFloatToString(-std::numeric_limits<float>::min(), buf)); in TEST()
127 EXPECT_STREQ("0.25", TerminatedFloatToString(0.25f, buf)); in TEST()
128 EXPECT_STREQ("-0.25", TerminatedFloatToString(-0.25f, buf)); in TEST()
130 EXPECT_STREQ("100", TerminatedFloatToString(100.0f, buf)); in TEST()
131 EXPECT_STREQ("-100", TerminatedFloatToString(-100.0f, buf)); in TEST()
135 EXPECT_STREQ("2147483647", TerminatedFloatToString(2147483647.0f, buf)); in TEST()
[all …]