Lines Matching refs:d
22 double d; in TEST() local
23 ASSERT_FALSE(android::base::ParseDouble("", &d)); in TEST()
24 ASSERT_FALSE(android::base::ParseDouble("x", &d)); in TEST()
25 ASSERT_FALSE(android::base::ParseDouble("123.4x", &d)); in TEST()
27 ASSERT_TRUE(android::base::ParseDouble("123.4", &d)); in TEST()
28 ASSERT_DOUBLE_EQ(123.4, d); in TEST()
29 ASSERT_TRUE(android::base::ParseDouble("-123.4", &d)); in TEST()
30 ASSERT_DOUBLE_EQ(-123.4, d); in TEST()
32 ASSERT_TRUE(android::base::ParseDouble("0", &d, 0.0)); in TEST()
33 ASSERT_DOUBLE_EQ(0.0, d); in TEST()
34 ASSERT_FALSE(android::base::ParseDouble("0", &d, 1e-9)); in TEST()
35 ASSERT_FALSE(android::base::ParseDouble("3.0", &d, -1.0, 2.0)); in TEST()
36 ASSERT_TRUE(android::base::ParseDouble("1.0", &d, 0.0, 2.0)); in TEST()
37 ASSERT_DOUBLE_EQ(1.0, d); in TEST()