From 9aa8d79bfc56334ca8e3bed648a23bc25d2aa06c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 27 Apr 2025 14:43:53 +0200 Subject: [PATCH] Enhanced unit test for better debugging --- src/tl/unit_tests/tlFileUtilsTests.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tl/unit_tests/tlFileUtilsTests.cc b/src/tl/unit_tests/tlFileUtilsTests.cc index 2eafe8bc3..2c5e210cc 100644 --- a/src/tl/unit_tests/tlFileUtilsTests.cc +++ b/src/tl/unit_tests/tlFileUtilsTests.cc @@ -1053,7 +1053,7 @@ TEST (25) std::sort (res.begin (), res.end ()); std::sort (au.begin (), au.end ()); - EXPECT_EQ (res == au, true); + EXPECT_EQ (tl::join (res, "\n"), tl::join (au, "\n")); res = tl::glob_expand (tl::combine_path (tl::combine_path (p, "**"), "*.txt")); au.clear (); @@ -1066,7 +1066,7 @@ TEST (25) std::sort (res.begin (), res.end ()); std::sort (au.begin (), au.end ()); - EXPECT_EQ (res == au, true); + EXPECT_EQ (tl::join (res, "\n"), tl::join (au, "\n")); res = tl::glob_expand (tl::combine_path (tl::combine_path (p, "**"), "*2.txt")); au.clear (); @@ -1075,7 +1075,7 @@ TEST (25) std::sort (res.begin (), res.end ()); std::sort (au.begin (), au.end ()); - EXPECT_EQ (res == au, true); + EXPECT_EQ (tl::join (res, "\n"), tl::join (au, "\n")); res = tl::glob_expand (tl::combine_path (tl::combine_path (tl::combine_path (p, "**"), "a"), "*2.txt")); au.clear (); @@ -1083,6 +1083,6 @@ TEST (25) std::sort (res.begin (), res.end ()); std::sort (au.begin (), au.end ()); - EXPECT_EQ (res == au, true); + EXPECT_EQ (tl::join (res, "\n"), tl::join (au, "\n")); }