gtest_compressionCodec: fix lack of operator<< for char8_t

This commit is contained in:
Azat Khuzhin 2020-07-06 21:57:52 +03:00
parent dab5b5ad7b
commit 0a24d9eabf

View File

@ -256,8 +256,8 @@ template <typename T, typename ContainerLeft, typename ContainerRight>
if (++mismatching_items <= MAX_MISMATCHING_ITEMS)
{
result << "\nmismatching " << sizeof(T) << "-byte item #" << i
<< "\nexpected: " << bin(left_value) << " (0x" << std::hex << left_value << ")"
<< "\ngot : " << bin(right_value) << " (0x" << std::hex << right_value << ")";
<< "\nexpected: " << bin(left_value) << " (0x" << std::hex << size_t(left_value) << ")"
<< "\ngot : " << bin(right_value) << " (0x" << std::hex << size_t(right_value) << ")";
if (mismatching_items == MAX_MISMATCHING_ITEMS)
{
result << "\n..." << std::endl;