diff options
Diffstat (limited to 'tests/testlist.c')
-rw-r--r-- | tests/testlist.c | 363 |
1 files changed, 102 insertions, 261 deletions
diff --git a/tests/testlist.c b/tests/testlist.c index 580d171..d793157 100644 --- a/tests/testlist.c +++ b/tests/testlist.c @@ -112,7 +112,7 @@ enum { }; ListTests* list_tests_construct (GType object_type, const gchar* name); CollectionTests* collection_tests_construct (GType object_type, const gchar* name); -void gee_test_case_add_test (GeeTestCase* self, const gchar* name, GeeTestCaseTestMethod test, void* test_target); +void gee_test_case_add_test (GeeTestCase* self, const gchar* name, GeeTestCaseTestMethod test, void* test_target, GDestroyNotify test_target_destroy_notify); void list_tests_test_iterator_is_ordered (ListTests* self); static void _list_tests_test_iterator_is_ordered_gee_test_case_test_method (gpointer self); void list_tests_test_list_iterator (ListTests* self); @@ -206,18 +206,18 @@ ListTests* list_tests_construct (GType object_type, const gchar* name) { g_return_val_if_fail (name != NULL, NULL); _tmp0_ = name; self = (ListTests*) collection_tests_construct (object_type, _tmp0_); - gee_test_case_add_test ((GeeTestCase*) self, "[List] iterator is ordered", _list_tests_test_iterator_is_ordered_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] list iterator", _list_tests_test_list_iterator_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] duplicates are retained", _list_tests_test_duplicates_are_retained_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] get", _list_tests_test_get_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] set", _list_tests_test_set_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] insert", _list_tests_test_insert_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] remove_at", _list_tests_test_remove_at_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] index_of", _list_tests_test_index_of_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] first", _list_tests_test_first_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] last", _list_tests_test_last_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] insert_all", _list_tests_test_insert_all_gee_test_case_test_method, self); - gee_test_case_add_test ((GeeTestCase*) self, "[List] slice", _list_tests_test_slice_gee_test_case_test_method, self); + gee_test_case_add_test ((GeeTestCase*) self, "[List] iterator is ordered", _list_tests_test_iterator_is_ordered_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] list iterator", _list_tests_test_list_iterator_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] duplicates are retained", _list_tests_test_duplicates_are_retained_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] get", _list_tests_test_get_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] set", _list_tests_test_set_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] insert", _list_tests_test_insert_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] remove_at", _list_tests_test_remove_at_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] index_of", _list_tests_test_index_of_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] first", _list_tests_test_first_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] last", _list_tests_test_last_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] insert_all", _list_tests_test_insert_all_gee_test_case_test_method, g_object_ref (self), g_object_unref); + gee_test_case_add_test ((GeeTestCase*) self, "[List] slice", _list_tests_test_slice_gee_test_case_test_method, g_object_ref (self), g_object_unref); return self; } @@ -333,18 +333,18 @@ void list_tests_test_list_iterator (ListTests* self) { gboolean _tmp4_ = FALSE; GeeListIterator* _tmp5_; gboolean _tmp6_ = FALSE; - GeeListIterator* _tmp7_; + gboolean _tmp7_ = FALSE; gboolean _tmp8_ = FALSE; - GeeListIterator* _tmp9_; - gboolean _tmp10_ = FALSE; + gboolean _tmp9_ = FALSE; + GeeListIterator* _tmp10_ = NULL; GeeListIterator* _tmp11_; gboolean _tmp12_ = FALSE; GeeListIterator* _tmp13_; - gboolean _tmp14_ = FALSE; - gboolean _tmp15_ = FALSE; - gboolean _tmp16_ = FALSE; - gboolean _tmp17_ = FALSE; - GeeListIterator* _tmp18_ = NULL; + gpointer _tmp14_ = NULL; + gchar* _tmp15_; + GeeListIterator* _tmp16_; + gint _tmp17_ = 0; + GeeListIterator* _tmp18_; GeeListIterator* _tmp19_; gboolean _tmp20_ = FALSE; GeeListIterator* _tmp21_; @@ -353,28 +353,28 @@ void list_tests_test_list_iterator (ListTests* self) { GeeListIterator* _tmp24_; gint _tmp25_ = 0; GeeListIterator* _tmp26_; - GeeListIterator* _tmp27_; - gboolean _tmp28_ = FALSE; + gint _tmp27_; + gint _tmp28_; GeeListIterator* _tmp29_; - gpointer _tmp30_ = NULL; - gchar* _tmp31_; - GeeListIterator* _tmp32_; - gint _tmp33_ = 0; + gint _tmp30_ = 0; + GeeListIterator* _tmp31_; + gint _tmp32_; + gint _tmp33_; GeeListIterator* _tmp34_; - gint _tmp35_; - gint _tmp36_; - GeeListIterator* _tmp37_; - gint _tmp38_ = 0; - GeeListIterator* _tmp39_; - gint _tmp40_; - gint _tmp41_; - GeeListIterator* _tmp42_; - gint _tmp43_ = 0; + gint _tmp35_ = 0; + GeeListIterator* _tmp36_; + gboolean _tmp37_ = FALSE; + GeeListIterator* _tmp38_; + gpointer _tmp39_ = NULL; + gchar* _tmp40_; + GeeListIterator* _tmp41_; + gint _tmp42_ = 0; + GeeListIterator* _tmp43_; GeeListIterator* _tmp44_; - gint _tmp45_; - gint _tmp46_; - GeeListIterator* _tmp47_; - gint _tmp48_ = 0; + gboolean _tmp45_ = FALSE; + GeeListIterator* _tmp46_; + gboolean _tmp47_ = FALSE; + GeeListIterator* _tmp48_ = NULL; GeeListIterator* _tmp49_; gboolean _tmp50_ = FALSE; GeeListIterator* _tmp51_; @@ -382,69 +382,6 @@ void list_tests_test_list_iterator (ListTests* self) { gchar* _tmp53_; GeeListIterator* _tmp54_; gint _tmp55_ = 0; - GeeListIterator* _tmp56_; - GeeListIterator* _tmp57_; - gboolean _tmp58_ = FALSE; - GeeListIterator* _tmp59_; - gboolean _tmp60_ = FALSE; - GeeListIterator* _tmp61_; - gboolean _tmp62_ = FALSE; - GeeListIterator* _tmp63_; - gpointer _tmp64_ = NULL; - gchar* _tmp65_; - GeeListIterator* _tmp66_; - gint _tmp67_ = 0; - GeeListIterator* _tmp68_; - gboolean _tmp69_ = FALSE; - GeeListIterator* _tmp70_; - gboolean _tmp71_ = FALSE; - GeeListIterator* _tmp72_; - gboolean _tmp73_ = FALSE; - GeeListIterator* _tmp74_; - gpointer _tmp75_ = NULL; - gchar* _tmp76_; - GeeListIterator* _tmp77_; - gint _tmp78_ = 0; - GeeListIterator* _tmp79_; - gboolean _tmp80_ = FALSE; - GeeListIterator* _tmp81_; - gboolean _tmp82_ = FALSE; - GeeListIterator* _tmp83_; - gboolean _tmp84_ = FALSE; - GeeListIterator* _tmp85_; - gboolean _tmp86_ = FALSE; - GeeListIterator* _tmp87_; - gpointer _tmp88_ = NULL; - gchar* _tmp89_; - GeeListIterator* _tmp90_; - gint _tmp91_ = 0; - GeeListIterator* _tmp92_; - gboolean _tmp93_ = FALSE; - GeeListIterator* _tmp94_; - gboolean _tmp95_ = FALSE; - GeeListIterator* _tmp96_; - gpointer _tmp97_ = NULL; - gchar* _tmp98_; - GeeListIterator* _tmp99_; - gint _tmp100_ = 0; - GeeListIterator* _tmp101_; - gboolean _tmp102_ = FALSE; - GeeListIterator* _tmp103_; - gboolean _tmp104_ = FALSE; - GeeListIterator* _tmp105_; - gpointer _tmp106_ = NULL; - gchar* _tmp107_; - GeeListIterator* _tmp108_; - gint _tmp109_ = 0; - GeeListIterator* _tmp110_; - gboolean _tmp111_ = FALSE; - GeeListIterator* _tmp112_; - gboolean _tmp113_ = FALSE; - GeeListIterator* _tmp114_; - gpointer _tmp115_ = NULL; - gchar* _tmp116_; - GeeListIterator* _tmp117_; - gint _tmp118_ = 0; g_return_if_fail (self != NULL); _tmp0_ = ((CollectionTests*) self)->test_collection; _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GEE_TYPE_LIST) ? ((GeeList*) _tmp0_) : NULL); @@ -458,184 +395,88 @@ void list_tests_test_list_iterator (ListTests* self) { _tmp5_ = iterator; _tmp6_ = gee_iterator_next ((GeeIterator*) _tmp5_); _vala_assert (!_tmp6_, "! iterator.next ()"); - _tmp7_ = iterator; - _tmp8_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp7_); - _vala_assert (!_tmp8_, "! iterator.has_previous ()"); - _tmp9_ = iterator; - _tmp10_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp9_); - _vala_assert (!_tmp10_, "! iterator.previous ()"); + _tmp7_ = gee_collection_add ((GeeCollection*) test_list, "one"); + _vala_assert (_tmp7_, "test_list.add (\"one\")"); + _tmp8_ = gee_collection_add ((GeeCollection*) test_list, "two"); + _vala_assert (_tmp8_, "test_list.add (\"two\")"); + _tmp9_ = gee_collection_add ((GeeCollection*) test_list, "three"); + _vala_assert (_tmp9_, "test_list.add (\"three\")"); + _tmp10_ = gee_list_list_iterator (test_list); + _g_object_unref0 (iterator); + iterator = _tmp10_; _tmp11_ = iterator; - _tmp12_ = gee_iterator_first ((GeeIterator*) _tmp11_); - _vala_assert (!_tmp12_, "! iterator.first ()"); + _tmp12_ = gee_iterator_next ((GeeIterator*) _tmp11_); + _vala_assert (_tmp12_, "iterator.next()"); _tmp13_ = iterator; - _tmp14_ = gee_bidir_iterator_last ((GeeBidirIterator*) _tmp13_); - _vala_assert (!_tmp14_, "! iterator.last ()"); - _tmp15_ = gee_collection_add ((GeeCollection*) test_list, "one"); - _vala_assert (_tmp15_, "test_list.add (\"one\")"); - _tmp16_ = gee_collection_add ((GeeCollection*) test_list, "two"); - _vala_assert (_tmp16_, "test_list.add (\"two\")"); - _tmp17_ = gee_collection_add ((GeeCollection*) test_list, "three"); - _vala_assert (_tmp17_, "test_list.add (\"three\")"); - _tmp18_ = gee_list_list_iterator (test_list); - _g_object_unref0 (iterator); - iterator = _tmp18_; + _tmp14_ = gee_iterator_get ((GeeIterator*) _tmp13_); + _tmp15_ = (gchar*) _tmp14_; + _vala_assert (g_strcmp0 (_tmp15_, "one") == 0, "iterator.get () == \"one\""); + _g_free0 (_tmp15_); + _tmp16_ = iterator; + _tmp17_ = gee_list_iterator_index (_tmp16_); + _vala_assert (_tmp17_ == 0, "iterator.index () == 0"); + _tmp18_ = iterator; + gee_list_iterator_set (_tmp18_, "new one"); _tmp19_ = iterator; _tmp20_ = gee_iterator_next ((GeeIterator*) _tmp19_); _vala_assert (_tmp20_, "iterator.next()"); _tmp21_ = iterator; _tmp22_ = gee_iterator_get ((GeeIterator*) _tmp21_); _tmp23_ = (gchar*) _tmp22_; - _vala_assert (g_strcmp0 (_tmp23_, "one") == 0, "iterator.get () == \"one\""); + _vala_assert (g_strcmp0 (_tmp23_, "two") == 0, "iterator.get () == \"two\""); _g_free0 (_tmp23_); _tmp24_ = iterator; _tmp25_ = gee_list_iterator_index (_tmp24_); - _vala_assert (_tmp25_ == 0, "iterator.index () == 0"); + _vala_assert (_tmp25_ == 1, "iterator.index () == 1"); _tmp26_ = iterator; - gee_list_iterator_set (_tmp26_, "new one"); - _tmp27_ = iterator; - _tmp28_ = gee_iterator_next ((GeeIterator*) _tmp27_); - _vala_assert (_tmp28_, "iterator.next()"); + gee_list_iterator_set (_tmp26_, "new two"); + _tmp27_ = gee_collection_get_size ((GeeCollection*) test_list); + _tmp28_ = _tmp27_; + _vala_assert (_tmp28_ == 3, "test_list.size == 3"); _tmp29_ = iterator; - _tmp30_ = gee_iterator_get ((GeeIterator*) _tmp29_); - _tmp31_ = (gchar*) _tmp30_; - _vala_assert (g_strcmp0 (_tmp31_, "two") == 0, "iterator.get () == \"two\""); - _g_free0 (_tmp31_); - _tmp32_ = iterator; - _tmp33_ = gee_list_iterator_index (_tmp32_); - _vala_assert (_tmp33_ == 1, "iterator.index () == 1"); + _tmp30_ = gee_list_iterator_index (_tmp29_); + _vala_assert (_tmp30_ == 1, "iterator.index () == 1"); + _tmp31_ = iterator; + gee_list_iterator_add (_tmp31_, "after two"); + _tmp32_ = gee_collection_get_size ((GeeCollection*) test_list); + _tmp33_ = _tmp32_; + _vala_assert (_tmp33_ == 4, "test_list.size == 4"); _tmp34_ = iterator; - gee_list_iterator_set (_tmp34_, "new two"); - _tmp35_ = gee_collection_get_size ((GeeCollection*) test_list); - _tmp36_ = _tmp35_; - _vala_assert (_tmp36_ == 3, "test_list.size == 3"); - _tmp37_ = iterator; - _tmp38_ = gee_list_iterator_index (_tmp37_); - _vala_assert (_tmp38_ == 1, "iterator.index () == 1"); - _tmp39_ = iterator; - gee_list_iterator_insert (_tmp39_, "before two"); - _tmp40_ = gee_collection_get_size ((GeeCollection*) test_list); - _tmp41_ = _tmp40_; - _vala_assert (_tmp41_ == 4, "test_list.size == 4"); - _tmp42_ = iterator; - _tmp43_ = gee_list_iterator_index (_tmp42_); - _vala_assert (_tmp43_ == 2, "iterator.index () == 2"); + _tmp35_ = gee_list_iterator_index (_tmp34_); + _vala_assert (_tmp35_ == 2, "iterator.index () == 2"); + _tmp36_ = iterator; + _tmp37_ = gee_iterator_next ((GeeIterator*) _tmp36_); + _vala_assert (_tmp37_, "iterator.next()"); + _tmp38_ = iterator; + _tmp39_ = gee_iterator_get ((GeeIterator*) _tmp38_); + _tmp40_ = (gchar*) _tmp39_; + _vala_assert (g_strcmp0 (_tmp40_, "three") == 0, "iterator.get () == \"three\""); + _g_free0 (_tmp40_); + _tmp41_ = iterator; + _tmp42_ = gee_list_iterator_index (_tmp41_); + _vala_assert (_tmp42_ == 3, "iterator.index () == 3"); + _tmp43_ = iterator; + gee_list_iterator_set (_tmp43_, "new three"); _tmp44_ = iterator; - gee_list_iterator_add (_tmp44_, "after two"); - _tmp45_ = gee_collection_get_size ((GeeCollection*) test_list); - _tmp46_ = _tmp45_; - _vala_assert (_tmp46_ == 5, "test_list.size == 5"); - _tmp47_ = iterator; - _tmp48_ = gee_list_iterator_index (_tmp47_); - _vala_assert (_tmp48_ == 3, "iterator.index () == 3"); + _tmp45_ = gee_iterator_has_next ((GeeIterator*) _tmp44_); + _vala_assert (!_tmp45_, "! iterator.has_next ()"); + _tmp46_ = iterator; + _tmp47_ = gee_iterator_next ((GeeIterator*) _tmp46_); + _vala_assert (!_tmp47_, "! iterator.next ()"); + _tmp48_ = gee_list_list_iterator (test_list); + _g_object_unref0 (iterator); + iterator = _tmp48_; _tmp49_ = iterator; _tmp50_ = gee_iterator_next ((GeeIterator*) _tmp49_); - _vala_assert (_tmp50_, "iterator.next()"); + _vala_assert (_tmp50_, "iterator.next ()"); _tmp51_ = iterator; _tmp52_ = gee_iterator_get ((GeeIterator*) _tmp51_); _tmp53_ = (gchar*) _tmp52_; - _vala_assert (g_strcmp0 (_tmp53_, "three") == 0, "iterator.get () == \"three\""); + _vala_assert (g_strcmp0 (_tmp53_, "new one") == 0, "iterator.get () == \"new one\""); _g_free0 (_tmp53_); _tmp54_ = iterator; _tmp55_ = gee_list_iterator_index (_tmp54_); - _vala_assert (_tmp55_ == 4, "iterator.index () == 4"); - _tmp56_ = iterator; - gee_list_iterator_set (_tmp56_, "new three"); - _tmp57_ = iterator; - _tmp58_ = gee_iterator_has_next ((GeeIterator*) _tmp57_); - _vala_assert (!_tmp58_, "! iterator.has_next ()"); - _tmp59_ = iterator; - _tmp60_ = gee_iterator_next ((GeeIterator*) _tmp59_); - _vala_assert (!_tmp60_, "! iterator.next ()"); - _tmp61_ = iterator; - _tmp62_ = gee_iterator_first ((GeeIterator*) _tmp61_); - _vala_assert (_tmp62_, "iterator.first ()"); - _tmp63_ = iterator; - _tmp64_ = gee_iterator_get ((GeeIterator*) _tmp63_); - _tmp65_ = (gchar*) _tmp64_; - _vala_assert (g_strcmp0 (_tmp65_, "new one") == 0, "iterator.get () == \"new one\""); - _g_free0 (_tmp65_); - _tmp66_ = iterator; - _tmp67_ = gee_list_iterator_index (_tmp66_); - _vala_assert (_tmp67_ == 0, "iterator.index () == 0"); - _tmp68_ = iterator; - _tmp69_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp68_); - _vala_assert (!_tmp69_, "! iterator.has_previous ()"); - _tmp70_ = iterator; - _tmp71_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp70_); - _vala_assert (!_tmp71_, "! iterator.previous ()"); - _tmp72_ = iterator; - _tmp73_ = gee_bidir_iterator_last ((GeeBidirIterator*) _tmp72_); - _vala_assert (_tmp73_, "iterator.last ()"); - _tmp74_ = iterator; - _tmp75_ = gee_iterator_get ((GeeIterator*) _tmp74_); - _tmp76_ = (gchar*) _tmp75_; - _vala_assert (g_strcmp0 (_tmp76_, "new three") == 0, "iterator.get () == \"new three\""); - _g_free0 (_tmp76_); - _tmp77_ = iterator; - _tmp78_ = gee_list_iterator_index (_tmp77_); - _vala_assert (_tmp78_ == 4, "iterator.index () == 4"); - _tmp79_ = iterator; - _tmp80_ = gee_iterator_has_next ((GeeIterator*) _tmp79_); - _vala_assert (!_tmp80_, "! iterator.has_next ()"); - _tmp81_ = iterator; - _tmp82_ = gee_iterator_next ((GeeIterator*) _tmp81_); - _vala_assert (!_tmp82_, "! iterator.next ()"); - _tmp83_ = iterator; - _tmp84_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp83_); - _vala_assert (_tmp84_, "iterator.has_previous ()"); - _tmp85_ = iterator; - _tmp86_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp85_); - _vala_assert (_tmp86_, "iterator.previous ()"); - _tmp87_ = iterator; - _tmp88_ = gee_iterator_get ((GeeIterator*) _tmp87_); - _tmp89_ = (gchar*) _tmp88_; - _vala_assert (g_strcmp0 (_tmp89_, "after two") == 0, "iterator.get () == \"after two\""); - _g_free0 (_tmp89_); - _tmp90_ = iterator; - _tmp91_ = gee_list_iterator_index (_tmp90_); - _vala_assert (_tmp91_ == 3, "iterator.index () == 3"); - _tmp92_ = iterator; - _tmp93_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp92_); - _vala_assert (_tmp93_, "iterator.has_previous ()"); - _tmp94_ = iterator; - _tmp95_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp94_); - _vala_assert (_tmp95_, "iterator.previous ()"); - _tmp96_ = iterator; - _tmp97_ = gee_iterator_get ((GeeIterator*) _tmp96_); - _tmp98_ = (gchar*) _tmp97_; - _vala_assert (g_strcmp0 (_tmp98_, "new two") == 0, "iterator.get () == \"new two\""); - _g_free0 (_tmp98_); - _tmp99_ = iterator; - _tmp100_ = gee_list_iterator_index (_tmp99_); - _vala_assert (_tmp100_ == 2, "iterator.index () == 2"); - _tmp101_ = iterator; - _tmp102_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp101_); - _vala_assert (_tmp102_, "iterator.has_previous ()"); - _tmp103_ = iterator; - _tmp104_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp103_); - _vala_assert (_tmp104_, "iterator.previous ()"); - _tmp105_ = iterator; - _tmp106_ = gee_iterator_get ((GeeIterator*) _tmp105_); - _tmp107_ = (gchar*) _tmp106_; - _vala_assert (g_strcmp0 (_tmp107_, "before two") == 0, "iterator.get () == \"before two\""); - _g_free0 (_tmp107_); - _tmp108_ = iterator; - _tmp109_ = gee_list_iterator_index (_tmp108_); - _vala_assert (_tmp109_ == 1, "iterator.index () == 1"); - _tmp110_ = iterator; - _tmp111_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp110_); - _vala_assert (_tmp111_, "iterator.has_previous ()"); - _tmp112_ = iterator; - _tmp113_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp112_); - _vala_assert (_tmp113_, "iterator.previous ()"); - _tmp114_ = iterator; - _tmp115_ = gee_iterator_get ((GeeIterator*) _tmp114_); - _tmp116_ = (gchar*) _tmp115_; - _vala_assert (g_strcmp0 (_tmp116_, "new one") == 0, "iterator.get () == \"new one\""); - _g_free0 (_tmp116_); - _tmp117_ = iterator; - _tmp118_ = gee_list_iterator_index (_tmp117_); - _vala_assert (_tmp118_ == 0, "iterator.index () == 0"); + _vala_assert (_tmp55_ == 0, "iterator.index () == 0"); _g_object_unref0 (iterator); _g_object_unref0 (test_list); } @@ -1786,7 +1627,7 @@ void list_tests_test_insert_all (ListTests* self) { test_list = _tmp1_; _tmp2_ = test_list; _vala_assert (_tmp2_ != NULL, "test_list != null"); - _tmp3_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL); + _tmp3_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL); dummy = _tmp3_; _tmp4_ = test_list; _tmp5_ = gee_collection_add ((GeeCollection*) _tmp4_, "zero"); @@ -1802,7 +1643,7 @@ void list_tests_test_insert_all (ListTests* self) { _tmp12_ = _tmp11_; _vala_assert (_tmp12_ == 3, "test_list.size == 3"); _tmp13_ = dummy; - _tmp14_ = gee_abstract_collection_get_is_empty ((GeeAbstractCollection*) _tmp13_); + _tmp14_ = gee_collection_get_is_empty ((GeeCollection*) _tmp13_); _tmp15_ = _tmp14_; _vala_assert (_tmp15_, "dummy.is_empty"); _tmp16_ = test_list; @@ -1813,7 +1654,7 @@ void list_tests_test_insert_all (ListTests* self) { _tmp20_ = _tmp19_; _vala_assert (_tmp20_ == 3, "test_list.size == 3"); _tmp21_ = dummy; - _tmp22_ = gee_abstract_collection_get_is_empty ((GeeAbstractCollection*) _tmp21_); + _tmp22_ = gee_collection_get_is_empty ((GeeCollection*) _tmp21_); _tmp23_ = _tmp22_; _vala_assert (_tmp23_, "dummy.is_empty"); _tmp24_ = test_list; |