mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
update svg tests
This commit is contained in:
parent
332d875839
commit
0ba2e3f3f6
@ -1 +1 @@
|
||||
Subproject commit 3b1f481ac2ceeb780255cd4c76a42ae06197b9bc
|
||||
Subproject commit 1f71eef3dfb0c453de430e94a8a0a3655cfbab2d
|
||||
@ -163,11 +163,10 @@ TEST_CASE("SVG parser") {
|
||||
svg_path_adapter svg_path(stl_storage);
|
||||
svg_converter_type svg(svg_path, path.attributes());
|
||||
svg_parser p(svg);
|
||||
|
||||
if (!p.parse_from_string(svg_str))
|
||||
{
|
||||
auto const& errors = p.error_messages();
|
||||
REQUIRE(errors.size() == 14);
|
||||
REQUIRE(errors.size() == 13);
|
||||
REQUIRE(errors[0] == "parse_rect: Invalid width");
|
||||
REQUIRE(errors[1] == "Failed to parse double: \"FAIL\"");
|
||||
REQUIRE(errors[2] == "parse_rect: Invalid height");
|
||||
@ -181,7 +180,6 @@ TEST_CASE("SVG parser") {
|
||||
REQUIRE(errors[10] == "Failed to parse <polyline> 'points'");
|
||||
REQUIRE(errors[11] == "parse_ellipse: Invalid rx");
|
||||
REQUIRE(errors[12] == "parse_ellipse: Invalid ry");
|
||||
REQUIRE(errors[13] == "parse_rect: Invalid height");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user