aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-29 19:00:04 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-29 19:00:26 +0100
commiteeca9679fbc104bdeac482a5ce3e2465397d71f1 (patch)
treed87d53becb54d012afa39da2a632db11d5878612
parent5c804dc652872b9a9c4abbf6656d7e559a25ea65 (diff)
downloadpaludis-eeca9679fbc104bdeac482a5ce3e2465397d71f1.tar.gz
paludis-eeca9679fbc104bdeac482a5ce3e2465397d71f1.tar.xz
Better test failure messages
-rw-r--r--test/test_framework.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_framework.hh b/test/test_framework.hh
index 1a97f48..e490af7 100644
--- a/test/test_framework.hh
+++ b/test/test_framework.hh
@@ -265,8 +265,8 @@ namespace test
try { \
test::TwoVarHolder test_h(paludis::stringify(a), paludis::stringify(b)); \
check(__PRETTY_FUNCTION__, __FILE__, __LINE__, test_h.result, \
- "Expected 'stringify(" #a ")' to equal 'stringify(" #b \
- ")' but got '" + test_h.s_a + "'" + test_h.s_d); \
+ "Expected 'stringify(" #a ")' = '" + test_h.s_a + "' to equal 'stringify(" #b \
+ ")' = '" + test_h.s_b + "'" + test_h.s_d); \
} catch (const TestFailedException &) { \
throw; \
} catch (const std::exception & test_e) { \