Fix is_empty
unit test e.g if multi geometry consists of empty geometries it is "empty".
This commit is contained in:
parent
b911464472
commit
0e9f8b06a3
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ TEST_CASE("geometry is_empty")
|
||||||
mapnik::geometry::multi_line_string<double> geom;
|
mapnik::geometry::multi_line_string<double> geom;
|
||||||
mapnik::geometry::line_string<double> line;
|
mapnik::geometry::line_string<double> line;
|
||||||
geom.emplace_back(std::move(line));
|
geom.emplace_back(std::move(line));
|
||||||
REQUIRE(!mapnik::geometry::is_empty(geom));
|
REQUIRE(mapnik::geometry::is_empty(geom));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ TEST_CASE("geometry is_empty")
|
||||||
mapnik::geometry::linear_ring<double> ring;
|
mapnik::geometry::linear_ring<double> ring;
|
||||||
poly.push_back(std::move(ring));
|
poly.push_back(std::move(ring));
|
||||||
geom.emplace_back(std::move(poly));
|
geom.emplace_back(std::move(poly));
|
||||||
REQUIRE(!mapnik::geometry::is_empty(geom));
|
REQUIRE(mapnik::geometry::is_empty(geom));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue