mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-01 03:57:43 +03:00
PrintTo functions for google test and valgrind
This commit is contained in:
@@ -84,3 +84,14 @@ TEST_P(NFAWidthTest, Check) {
|
||||
ASSERT_EQ(t.minWidth, findMinWidth(*w));
|
||||
ASSERT_EQ(t.maxWidth, findMaxWidth(*w));
|
||||
}
|
||||
|
||||
// for google test
|
||||
void PrintTo(const WidthTest &w, ::std::ostream *os) {
|
||||
*os << "WidthTest: " << w.pattern << "{" << w.minWidth << ',';
|
||||
if (w.maxWidth == depth::infinity()) {
|
||||
*os << "inf";
|
||||
} else {
|
||||
*os << w.maxWidth;
|
||||
}
|
||||
*os << '}';
|
||||
}
|
||||
|
Reference in New Issue
Block a user