Remove invalid to_array implementation and re-enable test
authorDidier 'Ptitjes <ptitjes@free.fr>
Tue, 4 Aug 2009 23:20:23 +0000 (01:20 +0200)
committerDidier 'Ptitjes <ptitjes@free.fr>
Tue, 4 Aug 2009 23:20:23 +0000 (01:20 +0200)
gee/arraylist.vala
tests/testcollection.vala

index 9d8f10b..23c885a 100644 (file)
@@ -175,12 +175,6 @@ public class Gee.ArrayList<G> : AbstractList<G> {
                return changed;
        }
 
-       public override G[] to_array() {
-               G[] array = new G[_size];
-               Memory.copy(array, _items, sizeof(G) * _size);
-               return array;
-       }
-
        private void shift (int start, int delta) {
                assert (start >= 0);
                assert (start <= _size);
index bbaed2a..4c31cd8 100644 (file)
@@ -28,7 +28,7 @@ public abstract class CollectionTests : TestFixture {
 
        public CollectionTests (string name) {
                base(name);
-               //add_test ("Collection.to_array ", test_to_array);
+               add_test ("Collection.to_array", test_to_array);
        }
 
        protected Collection<int> int_collection;