gplate/tags/tests/test-text-tag.c
changeset 391 20d032b30b6a
parent 390 3a38d5cf4abd
child 392 27f9b7952d63
     1.1 --- a/gplate/tags/tests/test-text-tag.c	Fri Jul 02 02:57:50 2010 -0500
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,60 +0,0 @@
     1.4 -#include <gplate/gplate.h>
     1.5 -
     1.6 -#include <glib.h>
     1.7 -
     1.8 -#include "gplate-tag-test.h"
     1.9 -
    1.10 -/******************************************************************************
    1.11 - * Tests
    1.12 - *****************************************************************************/
    1.13 -static void
    1.14 -gplate_text_tag_test_syntax_plain(GPlateTagTestFixture *fixture,
    1.15 -                                  gconstpointer data)
    1.16 -{
    1.17 -	fixture->template_string = "simple template";
    1.18 -	fixture->expected = "simple template";
    1.19 -
    1.20 -	gplate_tag_test_output(fixture, data);
    1.21 -}
    1.22 -
    1.23 -static void
    1.24 -gplate_text_tag_test_syntax_keywords(GPlateTagTestFixture *fixture,
    1.25 -                                     gconstpointer data)
    1.26 -{
    1.27 -	fixture->template_string = "extends if else endif for endfor";
    1.28 -	fixture->expected = "extends if else endif for endfor";
    1.29 -
    1.30 -	gplate_tag_test_output(fixture, data);
    1.31 -}
    1.32 -
    1.33 -static void
    1.34 -gplate_text_tag_test_syntax_keywords_case_sensitive(GPlateTagTestFixture *fixture,
    1.35 -                                                    gconstpointer data)
    1.36 -{
    1.37 -	fixture->template_string = "EXteNds iF eLse enDif fOr enDFor";
    1.38 -	fixture->expected = "EXteNds iF eLse enDif fOr enDFor";
    1.39 -
    1.40 -	gplate_tag_test_output(fixture, data);
    1.41 -}
    1.42 -
    1.43 -/******************************************************************************
    1.44 - * Main
    1.45 - *****************************************************************************/
    1.46 -gint
    1.47 -main(gint argc, gchar **argv) {
    1.48 -	g_test_init(&argc, &argv, NULL);
    1.49 -
    1.50 -	g_type_init();
    1.51 -
    1.52 -	gplate_config_load_default();
    1.53 -
    1.54 -	gplate_tag_test_add("/tags/text/plain",
    1.55 -	                    gplate_text_tag_test_syntax_plain);
    1.56 -	gplate_tag_test_add("/tags/text/keywords",
    1.57 -	                    gplate_text_tag_test_syntax_keywords);
    1.58 -	gplate_tag_test_add("/tags/text/keywords_case_sensitive", 
    1.59 -	                    gplate_text_tag_test_syntax_keywords_case_sensitive);
    1.60 -
    1.61 -	return g_test_run();
    1.62 -}
    1.63 -