summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2010-05-06 08:56:18 -0700
committerDaniel Burrows <dburrows@debian.org>2010-05-06 08:56:18 -0700
commit13dd29ff374c6a55732608cfa73dd55b827024b0 (patch)
treec8b4cc249905a33898957fe31516b2554433e0fc
parent58ed4414d2c3e86003d5b18a83d4fd58bc852a0b (diff)
downloadaptitude-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.cc2
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));