[libgee] Skip also the first element
- From: Maciej Marcin Piechotka <mpiechotka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee] Skip also the first element
- Date: Sat, 15 Feb 2014 17:54:40 +0000 (UTC)
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]