Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/geom/BoundaryTest.cpp
/* Test the method 'getCenter'*/
Test the method 'getCenter'
Test the method ' getCenter '
TEST(Boundary, test_method_getCenter) {
    Boundary bound(-2, -4, 4, 8);
    Position pos = bound.getCenter();
    EXPECT_DOUBLE_EQ(pos.x(), 1);
    EXPECT_DOUBLE_EQ(pos.y(), 2);
}
TEST ( Boundary , test_method_getCenter ) { Boundary bound ( -2 , -4 , 4 , 8 ) ; Position pos = bound . getCenter ( ) ; EXPECT_DOUBLE_EQ ( pos . x ( ) , 1 ) ; EXPECT_DOUBLE_EQ ( pos . y ( ) , 2 ) ; }
Test the method 'getCenter'
Test the method ' getCenter '