Enlightenment CVS committal
Author : cedric
Project : e17
Module : proto/eina
Dir : e17/proto/eina/src/tests
Modified Files:
eina_test_iterator.c eina_test_accessor.c
Log Message:
Easier API and follow gustavo's remark.
===================================================================
RCS file: /cvs/e/e17/proto/eina/src/tests/eina_test_iterator.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- eina_test_iterator.c 11 Aug 2008 16:30:16 -0000 1.1
+++ eina_test_iterator.c 11 Aug 2008 17:22:36 -0000 1.2
@@ -61,16 +61,12 @@
it = eina_array_iterator_new(ea);
fail_if(!it);
- tmp = eina_iterator_data_get(it);
- fail_if(!tmp);
- fail_if(*tmp != 0);
-
i = -1;
eina_iterator_foreach(it, EINA_EACH(eina_iterator_array_check), &i);
fail_if(i != 199);
fail_if(eina_iterator_container_get(it) != ea);
- fail_if(eina_iterator_next(it) != EINA_FALSE);
+ fail_if(eina_iterator_next(it, &tmp) != EINA_FALSE);
eina_iterator_free(it);
===================================================================
RCS file: /cvs/e/e17/proto/eina/src/tests/eina_test_accessor.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- eina_test_accessor.c 11 Aug 2008 16:30:16 -0000 1.1
+++ eina_test_accessor.c 11 Aug 2008 17:22:36 -0000 1.2
@@ -60,7 +60,7 @@
it = eina_array_accessor_new(ea);
fail_if(!it);
- tmp = eina_accessor_data_get(it, 100);
+ fail_if(eina_accessor_data_get(it, 100, &tmp) != EINA_TRUE);
fail_if(!tmp);
fail_if(*tmp != 100);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs