From da58be3f386d0f8526ffeba9ac4214465f2f8eac Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 29 Apr 2024 10:59:04 -0400 Subject: [PATCH] xo-indentlog: print hex view on failed quoted()/unq() utest --- utest/quoted.test.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/utest/quoted.test.cpp b/utest/quoted.test.cpp index 9f65ea33..d26cc1d1 100644 --- a/utest/quoted.test.cpp +++ b/utest/quoted.test.cpp @@ -1,14 +1,15 @@ /* @file fixed.test.cpp */ #include "xo/indentlog/print/quoted.hpp" -#include "xo/indentlog/print/tag.hpp" +//#include "xo/indentlog/print/tag.hpp" +#include "xo/indentlog/print/hex.hpp" #include #include -using namespace xo; -using namespace xo::print; - namespace ut { + using namespace xo; + using namespace xo::print; + struct quoted_tcase { quoted_tcase() = default; quoted_tcase(std::string x, bool unq_flag, std::string s) @@ -97,7 +98,7 @@ namespace ut { INFO(tostr("[", tc.s_, "]")); INFO("tc.s ----------------"); INFO("ss.str ----------------"); - INFO(tostr("[", ss.view(), "]")); + INFO(tostr("[", hex_view(ss.view().begin(), ss.view().end(), true), "]")); INFO(tostr("[", ss.str(), "]")); INFO("ss.str ----------------");