34 #include <gtest/gtest.h> 42 EXPECT_TRUE(b.isEmpty());
45 EXPECT_EQ(5.0, b.getMinX());
46 EXPECT_EQ(5.0, b.getMinX());
47 EXPECT_EQ(5.0, b.getMaxX());
48 EXPECT_EQ(6.0, b.getMinY());
49 EXPECT_EQ(6.0, b.getMaxY());
50 EXPECT_FALSE(b.isEmpty());
53 EXPECT_EQ(5.0, b2.getMinX());
54 EXPECT_EQ(5.0, b2.getMaxX());
55 EXPECT_EQ(6.0, b2.getMinY());
56 EXPECT_EQ(6.0, b2.getMaxY());
59 EXPECT_EQ(5.0, b2.getMinX());
60 EXPECT_EQ(5.0, b2.getMaxX());
61 EXPECT_EQ(6.0, b2.getMinY());
62 EXPECT_EQ(6.0, b2.getMaxY());
63 EXPECT_TRUE(b.isEmpty());
66 int main(
int argc,
char **argv)
68 testing::InitGoogleTest(&argc, argv);
69 return RUN_ALL_TESTS();
GenericBounds< double > Bounds
TEST(Bounds, test_bounds_simple)
int main(int argc, char **argv)