update svg tests

This commit is contained in:
artemp 2015-08-17 16:53:42 +02:00
parent 332d875839
commit 0ba2e3f3f6
2 changed files with 2 additions and 4 deletions

@ -1 +1 @@
Subproject commit 3b1f481ac2ceeb780255cd4c76a42ae06197b9bc
Subproject commit 1f71eef3dfb0c453de430e94a8a0a3655cfbab2d

View File

@ -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");
}
}