diff options
author | 2008-08-29 19:00:04 +0100 | |
---|---|---|
committer | 2008-08-29 19:00:26 +0100 | |
commit | eeca9679fbc104bdeac482a5ce3e2465397d71f1 (patch) | |
tree | d87d53becb54d012afa39da2a632db11d5878612 /test/test_framework.hh | |
parent | 5c804dc652872b9a9c4abbf6656d7e559a25ea65 (diff) | |
download | paludis-eeca9679fbc104bdeac482a5ce3e2465397d71f1.tar.gz paludis-eeca9679fbc104bdeac482a5ce3e2465397d71f1.tar.xz |
Better test failure messages
Diffstat (limited to 'test/test_framework.hh')
-rw-r--r-- | test/test_framework.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_framework.hh b/test/test_framework.hh index 1a97f487a..e490af75f 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) { \ |