1 #include <gplate/gplate.h>
5 #include "gplate-tag-test.h"
7 /******************************************************************************
9 *****************************************************************************/
11 gplate_comment_tag_test_empty(GPlateTagTestFixture *fixture,
14 gplate_tag_test_output(fixture, data, "{##}", "");
18 gplate_comment_tag_test_whitespace(GPlateTagTestFixture *fixture,
21 gplate_tag_test_output(fixture, data, "{# #}", "");
22 gplate_tag_test_output(fixture, data, "{#\t#}", "");
23 gplate_tag_test_output(fixture, data, "{#\n#}", "");
24 gplate_tag_test_output(fixture, data, "{#\r#}", "");
25 gplate_tag_test_output(fixture, data, "{#\r\n#}", "");
26 gplate_tag_test_output(fixture, data, "{#\n\r#}", "");
30 gplate_comment_tag_test_simple(GPlateTagTestFixture *fixture,
33 gplate_tag_test_output(fixture, data, "{# foo#}", "");
34 gplate_tag_test_output(fixture, data, "{#foo #}", "");
35 gplate_tag_test_output(fixture, data, "{#\tfoo#}", "");
36 gplate_tag_test_output(fixture, data, "{#foo\t#}", "");
37 gplate_tag_test_output(fixture, data, "{#\nfoo#}", "");
38 gplate_tag_test_output(fixture, data, "{#foo\n#}", "");
39 gplate_tag_test_output(fixture, data, "{#\rfoo#}", "");
40 gplate_tag_test_output(fixture, data, "{#foo\r#}", "");
41 gplate_tag_test_output(fixture, data, "{#\r\nfoo#}", "");
42 gplate_tag_test_output(fixture, data, "{#foo\r\n#}", "");
45 /******************************************************************************
47 *****************************************************************************/
49 main(gint argc, gchar **argv) {
50 g_test_init(&argc, &argv, NULL);
54 gplate_config_load_default();
56 gplate_tag_test_add("/tags/comment/empty",
57 gplate_comment_tag_test_empty);
58 gplate_tag_test_add("/tags/comment/whitespace",
59 gplate_comment_tag_test_whitespace);
60 gplate_tag_test_add("/tags/comment/simple",
61 gplate_comment_tag_test_simple);