soylent r152 - trunk/libsoylent/test



Author: svenp
Date: Sun Jun  8 11:36:01 2008
New Revision: 152
URL: http://svn.gnome.org/viewvc/soylent?rev=152&view=rev

Log:
added initilization test and playground test (helpful for playing around with new features)

Added:
   trunk/libsoylent/test/init.c
   trunk/libsoylent/test/playground.c
Modified:
   trunk/libsoylent/test/Makefile.am

Modified: trunk/libsoylent/test/Makefile.am
==============================================================================
--- trunk/libsoylent/test/Makefile.am	(original)
+++ trunk/libsoylent/test/Makefile.am	Sun Jun  8 11:36:01 2008
@@ -6,7 +6,9 @@
 
 test_SOURCES = \
 	test.h \
-	test.c
+	test.c \
+	init.c \
+	playground.c
 
 test_CFLAGS = $(WARN_CFLAGS) $(TEST_CFLAGS)
 test_LDADD = $(top_builddir)/libsoylent/libsoylent.la $(TEST_LIBS)

Added: trunk/libsoylent/test/init.c
==============================================================================
--- (empty file)
+++ trunk/libsoylent/test/init.c	Sun Jun  8 11:36:01 2008
@@ -0,0 +1,13 @@
+/**/
+
+#include "test.h"
+
+#include <libsoylent/soylent.h>
+
+void init(void) {
+	Test *test = test_init("Initialization");
+	
+	soylent_init();
+	
+	test_succeded(test);	
+}

Added: trunk/libsoylent/test/playground.c
==============================================================================
--- (empty file)
+++ trunk/libsoylent/test/playground.c	Sun Jun  8 11:36:01 2008
@@ -0,0 +1,14 @@
+//
+
+#include "test.h"
+
+#include <libsoylent/soylent.h>
+
+void playground(void) {
+	Test *test = test_init("Playground");
+	
+	SoylentEntity *entity = soylent_entity_new();
+	g_print("%s\n", (gchar *) soylent_entity_get(entity, "x"));
+	
+	test_succeded(test);
+}



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