xo-reader2: + pretty-printing for ParserResult + use in utest

This commit is contained in:
Roland Conybeare 2026-01-20 12:40:26 -05:00
commit 3bdbb61eba
3 changed files with 121 additions and 1 deletions

View file

@ -71,6 +71,9 @@ namespace xo {
TEST_CASE("SchematikaParser-batch-def", "[reader2][SchematikaParser]")
{
constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag));
ArenaConfig config;
config.name_ = "test-arena";
config.size_ = 16 * 1024;
@ -96,11 +99,12 @@ namespace xo {
REQUIRE(parser.has_incomplete_expr() == true);
REQUIRE(result.is_incomplete());
log && log(xtag("result", result));
}
// define-expressions not properly implemented
//REQUIRE(result.error_description());
}