[libgee] Skip also the first element



commit a4b87d18ab42336b8315dc6245b73c6b9d2dec5c
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Sat Feb 15 18:54:32 2014 +0100

    Skip also the first element

 tests/testlist.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testlist.vala b/tests/testlist.vala
index 8a18421..54a7503 100644
--- a/tests/testlist.vala
+++ b/tests/testlist.vala
@@ -348,8 +348,8 @@ 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
+                       if (idx[i] == data.length - 1 || idx[i] == 0) {
+                               // Removing last or first element, which was already removed
                                continue;
                        }
                        for (uint j = 0; j < i; j++) {


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