unit: add PrintTo for ue2_literal

This commit is contained in:
Justin Viiret 2017-08-11 10:35:19 +10:00 committed by Matthew Barr
parent fe31b387e8
commit 3f36665e39

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, Intel Corporation
* Copyright (c) 2015-2017, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -34,6 +34,18 @@
using namespace ue2;
#if defined(DUMP_SUPPORT)
namespace ue2 {
static void PrintTo(const ue2_literal &lit, ::std::ostream *os) {
*os << dumpString(lit);
}
} // namespace ue2
#endif // DUMP_SUPPORT
TEST(string, case_iter1) {
const char * const expected[] = {
"3FOO-BAR",