diff options
author | Daniel Burrows <dburrows@debian.org> | 2009-01-16 21:56:52 -0800 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2009-01-16 21:56:52 -0800 |
commit | 03449fd3ee81848874fff6a62667efdf986adde0 (patch) | |
tree | fb648cc478c9e65be10e1f9a2e39c2fe4b424e74 /tests/test_resolver_hints.cc | |
parent | 96faec6f7f820f6a772a64ff08f6d330368a5f6e (diff) | |
download | aptitude-03449fd3ee81848874fff6a62667efdf986adde0.tar.gz |
Also test operator=.
Diffstat (limited to 'tests/test_resolver_hints.cc')
-rw-r--r-- | tests/test_resolver_hints.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_resolver_hints.cc b/tests/test_resolver_hints.cc index f2e577d4..8393fdf2 100644 --- a/tests/test_resolver_hints.cc +++ b/tests/test_resolver_hints.cc @@ -119,6 +119,12 @@ public: hint h(resolver_tests[i].h); CPPUNIT_ASSERT_MESSAGE("Testing copy constructor: ", h == resolver_tests[i].h); + + hint h2; + h2 = resolver_tests[i].h; + + CPPUNIT_ASSERT_MESSAGE("Testing operator=: ", h2 == resolver_tests[i].h); + CPPUNIT_ASSERT_MESSAGE("Testing operator= and copy constructor: ", h == h2); } } |