2 * Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include <gplate/gplate.h>
21 #include "gplate-tag-test.h"
23 /******************************************************************************
25 *****************************************************************************/
27 gplate_text_tag_test_syntax_plain(GPlateTagTestFixture *fixture,
30 gplate_tag_test_output(fixture, data,
31 "simple template", "simple template");
35 gplate_text_tag_test_syntax_keywords(GPlateTagTestFixture *fixture,
38 gplate_tag_test_output(fixture, data,
39 "extends if else endif for endfor",
40 "extends if else endif for endfor");
44 gplate_text_tag_test_syntax_keywords_case_sensitive(GPlateTagTestFixture *fixture,
47 gplate_tag_test_output(fixture, data,
48 "EXteNds iF eLse enDif fOr enDFor",
49 "EXteNds iF eLse enDif fOr enDFor");
52 /******************************************************************************
54 *****************************************************************************/
56 main(gint argc, gchar **argv) {
57 g_test_init(&argc, &argv, NULL);
61 gplate_config_load_default();
63 gplate_tag_test_add("/tags/text/plain",
64 gplate_text_tag_test_syntax_plain);
65 gplate_tag_test_add("/tags/text/keywords",
66 gplate_text_tag_test_syntax_keywords);
67 gplate_tag_test_add("/tags/text/keywords_case_sensitive",
68 gplate_text_tag_test_syntax_keywords_case_sensitive);