diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-01-31 11:37:48 -0800 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-01-31 11:37:48 -0800 |
commit | c5e2e8b09bdcad81688d242f31f6463dc616d516 (patch) | |
tree | 2175eb5a70c6bec81cf5be1b99542181446d572a /tests/test_resolver.cc | |
parent | 6a0c3e3a6580688ea39f826162814121d0c299c7 (diff) | |
download | aptitude-c5e2e8b09bdcad81688d242f31f6463dc616d516.tar.gz |
Improve the error messages when a test fails.
Diffstat (limited to 'tests/test_resolver.cc')
-rw-r--r-- | tests/test_resolver.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_resolver.cc b/tests/test_resolver.cc index f9725541..61d432f8 100644 --- a/tests/test_resolver.cc +++ b/tests/test_resolver.cc @@ -1151,11 +1151,11 @@ private: { const tier_operation &op2(ops[j]); - std::string wheremsg = "i=" + boost::lexical_cast<std::string>(i) + ", j=" + boost::lexical_cast<std::string>(j); + std::string wheremsg = "(" + boost::lexical_cast<std::string>(op1) + ", " + boost::lexical_cast<std::string>(op2) + "); i=" + boost::lexical_cast<std::string>(i) + ", j=" + boost::lexical_cast<std::string>(j); - CPPUNIT_ASSERT_EQUAL_MESSAGE(wheremsg, lubs[i][j], tier_operation::least_upper_bound(op1, op2)); - CPPUNIT_ASSERT_EQUAL_MESSAGE(wheremsg, glbs[i][j], tier_operation::greatest_lower_bound(op1, op2)); - CPPUNIT_ASSERT_EQUAL_MESSAGE(wheremsg, sums[i][j], op1 + op2); + CPPUNIT_ASSERT_EQUAL_MESSAGE("lub" + wheremsg, lubs[i][j], tier_operation::least_upper_bound(op1, op2)); + CPPUNIT_ASSERT_EQUAL_MESSAGE("glb" + wheremsg, glbs[i][j], tier_operation::greatest_lower_bound(op1, op2)); + CPPUNIT_ASSERT_EQUAL_MESSAGE("sum" + wheremsg, sums[i][j], op1 + op2); } } } |