Searched refs:IsPositive (Results 1 – 1 of 1) sorted by relevance
773 static bool IsPositive(int n) { return n > 0; } in IsPositive() function777 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works for an empty container. in TEST()781 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works when no value satisfies. in TEST()786 EXPECT_EQ(2, CountIf(v, IsPositive)); in TEST()2350 bool IsPositive(double x) { in IsPositive() function2368 EXPECT_PRED1((bool (*)(int))(IsPositive), 5); // NOLINT in TEST()2369 ASSERT_PRED1((bool (*)(double))(IsPositive), 6.0); // NOLINT in TEST()