| 8 | #include "fields2cover/types.h" |
| 9 | |
| 10 | TEST(fields2cover_types_field, area) { |
| 11 | F2CField field; |
| 12 | EXPECT_EQ(field.area(), 0); |
| 13 | |
| 14 | F2CCells cells { |
| 15 | F2CCell(F2CLinearRing({ |
| 16 | F2CPoint(0,0), F2CPoint(2,0),F2CPoint(2,2),F2CPoint(0,2), F2CPoint(0,0) |
| 17 | })) |
| 18 | }; |
| 19 | field.setField(cells); |
| 20 | EXPECT_EQ(field.area(), 4); |
| 21 | const auto field2 = field; |
| 22 | EXPECT_EQ(field2.area(), 4); |
| 23 | } |
| 24 | |
| 25 | TEST(fields2cover_types_field, clone) { |
| 26 | F2CCells cells {F2CCell(F2CLinearRing({ |
nothing calls this directly
no test coverage detected