Updated 'Semantic predicate test'

pull/114/head
yhirose 4 years ago
parent 10cc75d503
commit 3c58f26635
  1. 5
      test/test2.cc

@ -626,6 +626,11 @@ TEST_CASE("Semantic predicate test", "[predicate]")
REQUIRE(parser.parse("100", val));
REQUIRE(val == 100);
parser.log = [](size_t line, size_t col, const std::string& msg) {
REQUIRE(line == 1);
REQUIRE(col == 1);
REQUIRE(msg == "value error!!");
};
REQUIRE(!parser.parse("200", val));
}

Loading…
Cancel
Save