Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/geom/BoundaryTest.cpp
/* Test the method 'moveby'*/
Test the method 'moveby'
Test the method ' moveby '
TEST(Boundary, test_method_moveby) {
    Boundary bound(1, 2, 3, 6);
    bound.moveby(2.5, -3.5);
    EXPECT_DOUBLE_EQ(bound.xmax(), 5.5);
    EXPECT_DOUBLE_EQ(bound.xmin(), 3.5);
    EXPECT_DOUBLE_EQ(bound.ymax(), 2.5);
    EXPECT_DOUBLE_EQ(bound.ymin(), -1.5);
}
TEST ( Boundary , test_method_moveby ) { Boundary bound ( 1 , 2 , 3 , 6 ) ; bound . moveby ( 2.5 , -3.5 ) ; EXPECT_DOUBLE_EQ ( bound . xmax ( ) , 5.5 ) ; EXPECT_DOUBLE_EQ ( bound . xmin ( ) , 3.5 ) ; EXPECT_DOUBLE_EQ ( bound . ymax ( ) , 2.5 ) ; EXPECT_DOUBLE_EQ ( bound . ymin ( ) , -1.5 ) ; }
Test the method 'moveby'
Test the method ' moveby '