update rectangle test to new API.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Jul 2009 15:58:44 +0000 (15:58 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Jul 2009 15:58:44 +0000 (15:58 +0000)
Guys, when you change API, please change it everywhere and then run tests!

By: Andre Dieb

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@41421 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/tests/eina_test_rectangle.c

index 7a85813..307bcb1 100644 (file)
@@ -36,7 +36,7 @@ START_TEST(eina_rectangle_pool)
 
    eina_rectangle_init();
 
-   pool = eina_rectangle_pool_add(256, 256);
+   pool = eina_rectangle_pool_new(256, 256);
    fail_if(pool == NULL);
 
    eina_rectangle_pool_data_set(pool, rects);
@@ -66,7 +66,7 @@ START_TEST(eina_rectangle_pool)
 
    fail_if(eina_rectangle_pool_request(pool, 16, 16) == NULL);
 
-   eina_rectangle_pool_delete(pool);
+   eina_rectangle_pool_free(pool);
 
    eina_rectangle_shutdown();
 }