diff options
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r-- | tests/testUtils.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index 2476787b..367be623 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -119,7 +119,14 @@ inline std::ostream& operator<<(std::ostream& os, const vmime::charset& ch) inline std::ostream& operator<<(std::ostream& os, const vmime::word& w) { - os << "[word: charset=" << w.getCharset().getName() << ", buffer=" << w.getBuffer() << "]"; + os << "[word: charset=" << w.getCharset().getName() + << ", buffer=" << w.getBuffer(); + + if (!w.getLanguage().empty()) + os << ", lang=" << w.getLanguage(); + + os << "]"; + return (os); } |