soylent r242 - trunk/libsoylent/test
- From: svenp svn gnome org
- To: svn-commits-list gnome org
- Subject: soylent r242 - trunk/libsoylent/test
- Date: Thu, 24 Jul 2008 13:32:04 +0000 (UTC)
Author: svenp
Date: Thu Jul 24 13:32:04 2008
New Revision: 242
URL: http://svn.gnome.org/viewvc/soylent?rev=242&view=rev
Log:
added tests for attributes
Modified:
   trunk/libsoylent/test/test-playground.c
Modified: trunk/libsoylent/test/test-playground.c
==============================================================================
--- trunk/libsoylent/test/test-playground.c	(original)
+++ trunk/libsoylent/test/test-playground.c	Thu Jul 24 13:32:04 2008
@@ -31,10 +31,6 @@
   test_init ("Playground");
   test_soylent_init ();
   
-  /* known bug 3 forces us to use the system-addressbook, but we don't want
-   to modify it, so just skip this test */
-  test_success ();
-  
   SlBook *testbook = test_setup_testbook ();
   
   test_print ("creating some people");
@@ -54,6 +50,18 @@
       test_fail ("couldn't remove person from addressbook: %s", error->message);
     }
   
+  SlAttribute *attr = sl_attribute_new ("url");
+  sl_attribute_add (attr, "http://www.kalterregen.de");
+  sl_attribute_add (attr, "http://planet.gnome.org");
+  
+  /*if (!sl_attribute_set_at (attr, 0, "http://www.firefox.com"))
+    {
+      test_fail ("couldn't set value at a given index");
+    }*/
+  
+  sl_entity_add_attribute (SL_ENTITY (person_joe), attr);
+  g_object_unref (attr);
+
   g_object_unref (person_tim);
   g_object_unref (person_joe);
   
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]