diff --git a/src/testsuite/libunderpass.all/val-test.cc b/src/testsuite/libunderpass.all/val-test.cc index a8827254..301ea5ee 100644 --- a/src/testsuite/libunderpass.all/val-test.cc +++ b/src/testsuite/libunderpass.all/val-test.cc @@ -183,7 +183,6 @@ test_semantic(std::shared_ptr &plugin) { } node.addTag("building", "yes"); - // Has an invalid key=value ... node.addTag("building:material", "sponge"); status = plugin->checkNode(node, "building"); @@ -216,6 +215,16 @@ test_semantic(std::shared_ptr &plugin) { return 1; } + // Has an invalid key=value + node.addTag("__building", "yes"); + status = plugin->checkNode(node, "building"); + if (status->hasStatus(badvalue)) { + runtest.pass("Validate::checkNode(bad value) [semantic building]"); + } else { + runtest.fail("Validate::checkNode(bad value) [semantic building]"); + return 1; + } + // Way - checkWay() auto way = readOsmWayFromFile("/testsuite/testdata/validation/building.osc");