From 3986d6b7e6f884a443fdfcb2539d0f32279a1c35 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 12 Sep 2021 20:57:37 +0300 Subject: [PATCH] Updated test_utf8_codecvt to show data differences on test failures. --- test/test_utf8_codecvt.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test_utf8_codecvt.cpp b/test/test_utf8_codecvt.cpp index f92706c..aa5b9e6 100644 --- a/test/test_utf8_codecvt.cpp +++ b/test/test_utf8_codecvt.cpp @@ -192,11 +192,11 @@ test_main(int /* argc */, char * /* argv */[]) { std::vector data2; std::copy(it2, end_iter, std::back_inserter(data2)); - BOOST_TEST(data1 == data2); + BOOST_TEST_ALL_EQ(data1.begin(), data1.end(), data2.begin(), data2.end()); } // some libraries have trouble that only shows up with longer strings - + const wchar_t * test3_data = L"\ \ \ @@ -224,7 +224,7 @@ test_main(int /* argc */, char * /* argv */[]) { \ \ "; - + // Send the UCS4_data back out, converting to UTF-8 std::size_t l = std::wcslen(test3_data); { @@ -299,4 +299,3 @@ main(int argc, char * argv[]){ retval = error_count; return retval; } -