Lines Matching refs:f
46 float f; in TEST() local
47 ASSERT_FALSE(android::base::ParseFloat("", &f)); in TEST()
48 ASSERT_FALSE(android::base::ParseFloat("x", &f)); in TEST()
49 ASSERT_FALSE(android::base::ParseFloat("123.4x", &f)); in TEST()
51 ASSERT_TRUE(android::base::ParseFloat("123.4", &f)); in TEST()
52 ASSERT_FLOAT_EQ(123.4, f); in TEST()
53 ASSERT_TRUE(android::base::ParseFloat("-123.4", &f)); in TEST()
54 ASSERT_FLOAT_EQ(-123.4, f); in TEST()
56 ASSERT_TRUE(android::base::ParseFloat("0", &f, 0.0)); in TEST()
57 ASSERT_FLOAT_EQ(0.0, f); in TEST()
58 ASSERT_FALSE(android::base::ParseFloat("0", &f, 1e-9)); in TEST()
59 ASSERT_FALSE(android::base::ParseFloat("3.0", &f, -1.0, 2.0)); in TEST()
60 ASSERT_TRUE(android::base::ParseFloat("1.0", &f, 0.0, 2.0)); in TEST()
61 ASSERT_FLOAT_EQ(1.0, f); in TEST()