tests: better test initializing allowing for better printing (#5379)

Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
pajlada
2024-05-05 15:01:07 +02:00
committed by GitHub
parent a88a2ac65c
commit 401feac0aa
41 changed files with 198 additions and 178 deletions
+6 -7
View File
@@ -1,6 +1,6 @@
#include "util/FormatTime.hpp"
#include <gtest/gtest.h>
#include "Test.hpp"
#include <chrono>
@@ -62,8 +62,8 @@ TEST(FormatTime, Int)
const auto actual = formatTime(input);
EXPECT_EQ(actual, expected)
<< qUtf8Printable(actual) << " (" << input
<< ") did not match expected value " << qUtf8Printable(expected);
<< actual << " (" << input << ") did not match expected value "
<< expected;
}
}
@@ -130,8 +130,8 @@ TEST(FormatTime, QString)
const auto actual = formatTime(input);
EXPECT_EQ(actual, expected)
<< qUtf8Printable(actual) << " (" << qUtf8Printable(input)
<< ") did not match expected value " << qUtf8Printable(expected);
<< actual << " (" << input << ") did not match expected value "
<< expected;
}
}
@@ -202,7 +202,6 @@ TEST(FormatTime, chrono)
const auto actual = formatTime(input);
EXPECT_EQ(actual, expected)
<< qUtf8Printable(actual) << " did not match expected value "
<< qUtf8Printable(expected);
<< actual << " did not match expected value " << expected;
}
}