projects
/
platform
/
upstream
/
libgee.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
975a018
)
Skip also the first element
author
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 15 Feb 2014 17:54:32 +0000
(18:54 +0100)
committer
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 15 Feb 2014 17:54:32 +0000
(18:54 +0100)
tests/testlist.vala
patch
|
blob
|
history
diff --git
a/tests/testlist.vala
b/tests/testlist.vala
index
8a18421
..
54a7503
100644
(file)
--- 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++) {