--- a/gplate/functions/tests/test-gplate-for-function.c Sun Jul 04 16:09:43 2010 -0500
+++ b/gplate/functions/tests/test-gplate-for-function.c Sun Jul 04 16:49:50 2010 -0500
@@ -25,7 +25,7 @@
-} GPlateForFunctionTestData;
+} TestGPlateForFunctionData; GPlateTemplate *template;
@@ -39,14 +39,14 @@
- GPlateForFunctionTestData *data;
-} GPlateForFunctionTestFixture;
+ TestGPlateForFunctionData *data; +} TestGPlateForFunctionFixture; /******************************************************************************
*****************************************************************************/
-gplate_for_function_test_setup(GPlateForFunctionTestFixture *fixture,
+test_gplate_for_function_setup(TestGPlateForFunctionFixture *fixture, fixture->template = gplate_template_new();
@@ -57,7 +57,7 @@
-gplate_for_function_test_teardown(GPlateForFunctionTestFixture *fixture,
+test_gplate_for_function_teardown(TestGPlateForFunctionFixture *fixture, g_object_unref(fixture->template);
@@ -81,7 +81,7 @@
*****************************************************************************/
-gplate_for_function_test(GPlateForFunctionTestFixture *fixture) {
+test_gplate_for_function(TestGPlateForFunctionFixture *fixture) { @@ -104,10 +104,10 @@
*****************************************************************************/
-gplate_for_function_test_zero_elements(GPlateForFunctionTestFixture *fixture,
+test_gplate_for_function_zero_elements(TestGPlateForFunctionFixture *fixture, - GPlateForFunctionTestData data[] = {
+ TestGPlateForFunctionData data[] = { @@ -115,14 +115,14 @@
fixture->template_string = "{% for in in line %}{{ i }}{% endfor %}";
- gplate_for_function_test(fixture);
+ test_gplate_for_function(fixture); -gplate_for_function_test_one_element(GPlateForFunctionTestFixture *fixture,
+test_gplate_for_function_one_element(TestGPlateForFunctionFixture *fixture, - GPlateForFunctionTestData data[] = {
+ TestGPlateForFunctionData data[] = { @@ -131,14 +131,14 @@
fixture->template_string = "{% for i in list %}{{ i }}{% endfor %}";
- gplate_for_function_test(fixture);
+ test_gplate_for_function(fixture); -gplate_for_function_test_two_elements(GPlateForFunctionTestFixture *fixture,
+test_gplate_for_function_two_elements(TestGPlateForFunctionFixture *fixture, - GPlateForFunctionTestData data[] = {
+ TestGPlateForFunctionData data[] = { @@ -148,7 +148,7 @@
fixture->template_string = "{% for i in list %}{{ i }}{% endfor %}";
fixture->expected = "AB";
- gplate_for_function_test(fixture);
+ test_gplate_for_function(fixture); /******************************************************************************
@@ -163,25 +163,25 @@
gplate_config_load_default();
g_test_add("/functions/foo/zero_elements",
- GPlateForFunctionTestFixture,
+ TestGPlateForFunctionFixture, - gplate_for_function_test_setup,
- gplate_for_function_test_zero_elements,
- gplate_for_function_test_teardown);
+ test_gplate_for_function_setup, + test_gplate_for_function_zero_elements, + test_gplate_for_function_teardown); g_test_add("/functions/foo/one_element",
- GPlateForFunctionTestFixture,
+ TestGPlateForFunctionFixture, - gplate_for_function_test_setup,
- gplate_for_function_test_one_element,
- gplate_for_function_test_teardown);
+ test_gplate_for_function_setup, + test_gplate_for_function_one_element, + test_gplate_for_function_teardown); g_test_add("/functions/foo/two_elements",
- GPlateForFunctionTestFixture,
+ TestGPlateForFunctionFixture, - gplate_for_function_test_setup,
- gplate_for_function_test_two_elements,
- gplate_for_function_test_teardown);
+ test_gplate_for_function_setup, + test_gplate_for_function_two_elements, + test_gplate_for_function_teardown);