1.1 --- a/gplate/tags/tests/gplate-text-tag-test.c Sun Jul 04 02:58:33 2010 -0500
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,72 +0,0 @@
1.4 -/*
1.5 - * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
1.6 - *
1.7 - * This program is free software: you can redistribute it and/or modify
1.8 - * it under the terms of the GNU General Public License as published by
1.9 - * the Free Software Foundation, either version 3 of the License, or
1.10 - * (at your option) any later version.
1.11 - *
1.12 - * This program is distributed in the hope that it will be useful,
1.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.15 - * GNU General Public License for more details.
1.16 - *
1.17 - * You should have received a copy of the GNU General Public License
1.18 - * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.19 - */
1.20 -#include <gplate/gplate.h>
1.21 -
1.22 -#include <glib.h>
1.23 -
1.24 -#include "gplate-tag-test.h"
1.25 -
1.26 -/******************************************************************************
1.27 - * Tests
1.28 - *****************************************************************************/
1.29 -static void
1.30 -gplate_text_tag_test_syntax_plain(GPlateTagTestFixture *fixture,
1.31 - gconstpointer data)
1.32 -{
1.33 - gplate_tag_test_output(fixture, data,
1.34 - "simple template", "simple template");
1.35 -}
1.36 -
1.37 -static void
1.38 -gplate_text_tag_test_syntax_keywords(GPlateTagTestFixture *fixture,
1.39 - gconstpointer data)
1.40 -{
1.41 - gplate_tag_test_output(fixture, data,
1.42 - "extends if else endif for endfor",
1.43 - "extends if else endif for endfor");
1.44 -}
1.45 -
1.46 -static void
1.47 -gplate_text_tag_test_syntax_keywords_case_sensitive(GPlateTagTestFixture *fixture,
1.48 - gconstpointer data)
1.49 -{
1.50 - gplate_tag_test_output(fixture, data,
1.51 - "EXteNds iF eLse enDif fOr enDFor",
1.52 - "EXteNds iF eLse enDif fOr enDFor");
1.53 -}
1.54 -
1.55 -/******************************************************************************
1.56 - * Main
1.57 - *****************************************************************************/
1.58 -gint
1.59 -main(gint argc, gchar **argv) {
1.60 - g_test_init(&argc, &argv, NULL);
1.61 -
1.62 - g_type_init();
1.63 -
1.64 - gplate_config_load_default();
1.65 -
1.66 - gplate_tag_test_add("/tags/text/plain",
1.67 - gplate_text_tag_test_syntax_plain);
1.68 - gplate_tag_test_add("/tags/text/keywords",
1.69 - gplate_text_tag_test_syntax_keywords);
1.70 - gplate_tag_test_add("/tags/text/keywords_case_sensitive",
1.71 - gplate_text_tag_test_syntax_keywords_case_sensitive);
1.72 -
1.73 - return g_test_run();
1.74 -}
1.75 -