mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
TestSuite: Actually print failed comparions.. :^)
This commit is contained in:
parent
eeff0cd570
commit
8434548f14
1 changed files with 8 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "Function.h"
|
||||
#include "NonnullRefPtrVector.h"
|
||||
#include <chrono>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
|
@ -240,7 +241,7 @@ using AK::TestSuite;
|
|||
auto ___aev1 = one; \
|
||||
auto ___aev2 = two; \
|
||||
if (___aev1 != ___aev2) { \
|
||||
const auto& msg = String::format("\033[31;1mFAIL\033[0m: assertEqual(" ___str(one) ", " ___str(two) ") failed"); \
|
||||
dbg() << TStyle(TStyle::Red, TStyle::Bold) << "FAIL" << TStyle() << ": " __FILE__ ":" << __LINE__ << ": assertEqual(" ___str(one) ", " ___str(two) ") failed"; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue