[libgee] Skip the test of removing already removed element



commit 975a0184d74b9b23b4911d73a3b5215d5469791f
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Sat Feb 15 18:46:59 2014 +0100

    Skip the test of removing already removed element

 tests/testlist.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/testlist.vala b/tests/testlist.vala
index 26d50d1..8a18421 100644
--- a/tests/testlist.vala
+++ b/tests/testlist.vala
@@ -348,6 +348,10 @@ public abstract class ListTests : CollectionTests {
                uint expected_size = data.length - 2;
                for (uint i = 0; i < idx.length; i++) {
                        int to_remove = (int)idx[i] - 1;
+                       if (idx[i] == data.length - 1) {
+                               // Removing last element, which was already removed
+                               continue;
+                       }
                        for (uint j = 0; j < i; j++) {
                                if (idx[j] < idx[i]) {
                                        to_remove--;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]