xo-indentlog: print hex view on failed quoted()/unq() utest
This commit is contained in:
parent
89fc563f00
commit
da58be3f38
1 changed files with 6 additions and 5 deletions
|
|
@ -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 <catch2/catch.hpp>
|
||||
#include <sstream>
|
||||
|
||||
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 ----------------");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue