mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
unit: add PrintTo for ue2_literal
This commit is contained in:
parent
fe31b387e8
commit
3f36665e39
@ -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
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
@ -34,6 +34,18 @@
|
|||||||
|
|
||||||
using namespace ue2;
|
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) {
|
TEST(string, case_iter1) {
|
||||||
const char * const expected[] = {
|
const char * const expected[] = {
|
||||||
"3FOO-BAR",
|
"3FOO-BAR",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user