7 #include <gtest/gtest.h>
14 TEST(fields2cover_rp_route_plan_base, simple_example) {
32 auto hl_swaths =
const_hl.generateHeadlandSwaths(
cells, 1, 3,
false);
35 decomp.setSplitAngle(M_PI/2.0);
44 EXPECT_FALSE(
route.isEmpty());
45 EXPECT_GT(
route.sizeVectorSwaths(), 1);
46 EXPECT_EQ(
route.sizeVectorSwaths(),
route.sizeConnections());
60 TEST(fields2cover_rp_route_plan_base, redirect_flag) {
78 auto hl_swaths =
const_hl.generateHeadlandSwaths(
cells, 1, 3,
false);
81 decomp.setSplitAngle(M_PI/2.0);
92 for (
size_t sbc = 0; sbc <
route.sizeVectorSwaths(); ++sbc) {
96 EXPECT_EQ(new_swaths.
size(), old_swaths.
size());
98 for (
size_t s = 0; s < new_swaths.
size(); ++s) {
104 EXPECT_FALSE(
route.isEmpty());
105 EXPECT_GT(
route.sizeVectorSwaths(), 1);
106 EXPECT_EQ(
route.sizeVectorSwaths(),
route.sizeConnections());