soylent r199 - trunk/libsoylent/test



Author: svenp
Date: Wed Jul  9 14:10:09 2008
New Revision: 199
URL: http://svn.gnome.org/viewvc/soylent?rev=199&view=rev

Log:
added simple EDS entity-handler test

Modified:
   trunk/libsoylent/test/test-playground.c
   trunk/libsoylent/test/test.h

Modified: trunk/libsoylent/test/test-playground.c
==============================================================================
--- trunk/libsoylent/test/test-playground.c	(original)
+++ trunk/libsoylent/test/test-playground.c	Wed Jul  9 14:10:09 2008
@@ -11,7 +11,11 @@
   
   test_print ("foo\n");
   SlEntity *entity = sl_entity_new ();
-  g_print ("%s\n", (gchar *) sl_entity_get (entity, "x"));
+  test_print ("%s\n", (gchar *) sl_entity_get (entity, "x"));
+  
+  SlEntityHandlerEDS *entity_handler = sl_entity_handler_eds_new ();
+  sl_entity_handler_eds_get (entity_handler, "foo");
+  sl_entity_handler_get (SL_ENTITY_HANDLER (entity_handler), "foo");
   
   test_success ();
 }

Modified: trunk/libsoylent/test/test.h
==============================================================================
--- trunk/libsoylent/test/test.h	(original)
+++ trunk/libsoylent/test/test.h	Wed Jul  9 14:10:09 2008
@@ -7,6 +7,7 @@
 #include <stdlib.h>
 #include <libsoylent/soylent.h>
 
+/* TODO: would this work without multiple g_prints? */
 #define test_init(name) test_name = name; \
                         g_print ("running test %s...\n", test_name)
 #define test_success()  g_print ("test %s succeded\n", test_name); \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]