diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-05-06 08:56:18 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-05-06 08:56:18 -0700 |
commit | 13dd29ff374c6a55732608cfa73dd55b827024b0 (patch) | |
tree | c8b4cc249905a33898957fe31516b2554433e0fc | |
parent | 58ed4414d2c3e86003d5b18a83d4fd58bc852a0b (diff) | |
download | aptitude-13dd29ff374c6a55732608cfa73dd55b827024b0.tar.gz |
Fix the dynamic list collection insertion test to not crash by inserting into a bad index.
I swapped the arguments to insert(); whoops!
-rw-r--r-- | tests/test_dynamic_list.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_dynamic_list.cc b/tests/test_dynamic_list.cc index 3d4e4dd6..86e27c00 100644 --- a/tests/test_dynamic_list.cc +++ b/tests/test_dynamic_list.cc @@ -810,7 +810,7 @@ BOOST_FIXTURE_TEST_CASE(dynamicListCollectionInsertIntoSublist, list_collection_ list2->insert(9, 0); // Now [1, 2, 3, 9, 5] list1->insert(4, 3); // Now [1, 2, 3, 9, 5, 4] list1->insert(0, 0); // Now [0, 1, 2, 3, 9, 5, 4] - list3->insert(0, 6); // Now [0, 1, 2, 3, 9, 5, 4, 6] + list3->insert(6, 0); // Now [0, 1, 2, 3, 9, 5, 4, 6] list2->insert(8, 1); // Now [0, 1, 2, 3, 9, 8, 5, 4, 6] expected.push_back(ins(9, 3)); |