grim/gplate

the rest of the current texttag testing

2010-06-26, Gary Kramlich
e9d714deb3a3
Parents d52926bcad47
Children 301bcc8bdad0
the rest of the current texttag testing
--- a/gplate/tags/tests/test-text-tag.c Sat Jun 26 13:52:43 2010 -0500
+++ b/gplate/tags/tests/test-text-tag.c Sat Jun 26 13:56:06 2010 -0500
@@ -64,6 +64,26 @@
gplate_text_tag_test_output(fixture);
}
+static void
+gplate_text_tag_test_syntax_keywords(GPlateTextTagTestFixture *fixture,
+ gconstpointer user_data)
+{
+ fixture->template_string = "extends if else endif for endfor";
+ fixture->expected = "extends if else endif for endfor";
+
+ gplate_text_tag_test_output(fixture);
+}
+
+static void
+gplate_text_tag_test_syntax_keywords_case_sensitive(GPlateTextTagTestFixture *fixture,
+ gconstpointer user_data)
+{
+ fixture->template_string = "EXteNds iF eLse enDif fOr enDFor";
+ fixture->expected = "EXteNds iF eLse enDif fOr enDFor";
+
+ gplate_text_tag_test_output(fixture);
+}
+
/******************************************************************************
* Main
*****************************************************************************/
@@ -82,6 +102,20 @@
gplate_text_tag_test_syntax_plain,
gplate_text_tag_test_teardown);
+ g_test_add("/tags/text/keywords",
+ GPlateTextTagTestFixture,
+ NULL,
+ gplate_text_tag_test_setup,
+ gplate_text_tag_test_syntax_keywords,
+ gplate_text_tag_test_teardown);
+
+ g_test_add("/tags/text/keywords_case_sensitive",
+ GPlateTextTagTestFixture,
+ NULL,
+ gplate_text_tag_test_setup,
+ gplate_text_tag_test_syntax_keywords_case_sensitive,
+ gplate_text_tag_test_teardown);
+
return g_test_run();
}