diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-05-09 21:11:32 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-05-09 21:11:32 -0700 |
commit | b70751ee4fbc43e0e95538f7a2661d290fe2ab26 (patch) | |
tree | b7b5125b16412334ef374d34545c450d671fd70e /tests/test_dynamic_set.cc | |
parent | ceb8e597dbdda022c9724736bd8da98943634846 (diff) | |
download | aptitude-b70751ee4fbc43e0e95538f7a2661d290fe2ab26.tar.gz |
Write a test verifying that sets which have been removed from a dynamic set union no longer affect it.
Diffstat (limited to 'tests/test_dynamic_set.cc')
-rw-r--r-- | tests/test_dynamic_set.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_dynamic_set.cc b/tests/test_dynamic_set.cc index 0b0cf1d2..c5a1796b 100644 --- a/tests/test_dynamic_set.cc +++ b/tests/test_dynamic_set.cc @@ -722,6 +722,17 @@ BOOST_FIXTURE_TEST_CASE(dynamicSetUnionRemoveNotPresentSet, set_union_test) CHECK_EQUAL_SETS(expected, values, int); } +BOOST_FIXTURE_TEST_CASE(dynamicSetRemoveStopsSignals, set_union_test) +{ + // Check that removing a set from the union means that changes to it + // no longer affect the union. + addSets(); + values.remove_set(set1); + set1->insert(100); + + FINISH_SET_TEST(); +} + BOOST_FIXTURE_TEST_CASE(dynamicSetInsertIntoSubsetWhenEmpty, set_union_test) { addSets(); |