Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/geom/BoundaryTest.cpp
/* Test the method 'add' with multiple calls*/
Test the method 'add' with multiple calls
Test the method ' add ' with multiple calls
TEST(Boundary, test_method_add_multiple) {
    Boundary bound;
    bound.add(-1, -2);
    bound.add(3, 5);
    bound.add(5, 8);
    EXPECT_DOUBLE_EQ(bound.xmax(), 5);
    EXPECT_DOUBLE_EQ(bound.xmin(), -1);
    EXPECT_DOUBLE_EQ(bound.ymax(), 8);
    EXPECT_DOUBLE_EQ(bound.ymin(), -2);
}
TEST ( Boundary , test_method_add_multiple ) { Boundary bound ; bound . add ( -1 , -2 ) ; bound . add ( 3 , 5 ) ; bound . add ( 5 , 8 ) ; EXPECT_DOUBLE_EQ ( bound . xmax ( ) , 5 ) ; EXPECT_DOUBLE_EQ ( bound . xmin ( ) , -1 ) ; EXPECT_DOUBLE_EQ ( bound . ymax ( ) , 8 ) ; EXPECT_DOUBLE_EQ ( bound . ymin ( ) , -2 ) ; }
Test the method 'add' with multiple calls
Test the method ' add ' with multiple calls