Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/geom/BoundaryTest.cpp
/* Test the method 'crosses'*/
Test the method 'crosses'
Test the method ' crosses '
TEST(Boundary, test_method_crosses) {
    Boundary bound(1, 2, 3, 6);
    EXPECT_TRUE(bound.crosses(Position(3, 2), Position(4, 2)));
    EXPECT_TRUE(bound.crosses(Position(2, 1), Position(0, 3)));
    EXPECT_TRUE(bound.crosses(Position(1, 2), Position(3, 6)));
    EXPECT_FALSE(bound.crosses(Position(0, 0), Position(0, 8)));
}
TEST ( Boundary , test_method_crosses ) { Boundary bound ( 1 , 2 , 3 , 6 ) ; EXPECT_TRUE ( bound . crosses ( Position ( 3 , 2 ) , Position ( 4 , 2 ) ) ) ; EXPECT_TRUE ( bound . crosses ( Position ( 2 , 1 ) , Position ( 0 , 3 ) ) ) ; EXPECT_TRUE ( bound . crosses ( Position ( 1 , 2 ) , Position ( 3 , 6 ) ) ) ; EXPECT_FALSE ( bound . crosses ( Position ( 0 , 0 ) , Position ( 0 , 8 ) ) ) ; }
Test the method 'crosses'
Test the method ' crosses '