diff options
author | Maciej Piechotka <uzytkownik2@gmail.com> | 2014-02-15 18:46:59 +0100 |
---|---|---|
committer | Maciej Piechotka <uzytkownik2@gmail.com> | 2014-02-15 18:46:59 +0100 |
commit | 975a0184d74b9b23b4911d73a3b5215d5469791f (patch) | |
tree | bc487a8b09d1d06453efd67ec7eed5a46c65b71a | |
parent | c012e1036c442b512fff6a63a5c0dcfa6a80672c (diff) | |
download | libgee-975a0184d74b9b23b4911d73a3b5215d5469791f.tar.gz |
Skip the test of removing already removed element
-rw-r--r-- | 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--; |