Lines Matching full:base
17 #include "android-base/parsedouble.h"
23 ASSERT_FALSE(android::base::ParseDouble("", &d));
24 ASSERT_FALSE(android::base::ParseDouble("x", &d));
25 ASSERT_FALSE(android::base::ParseDouble("123.4x", &d));
27 ASSERT_TRUE(android::base::ParseDouble("123.4", &d));
29 ASSERT_TRUE(android::base::ParseDouble("-123.4", &d));
32 ASSERT_TRUE(android::base::ParseDouble("0", &d, 0.0));
34 ASSERT_FALSE(android::base::ParseDouble("0", &d, 1e-9));
35 ASSERT_FALSE(android::base::ParseDouble("3.0", &d, -1.0, 2.0));
36 ASSERT_TRUE(android::base::ParseDouble("1.0", &d, 0.0, 2.0));