aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 21:45:18 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 21:45:18 +0100
commitc9a5143b2aa9b92d1fbff4c804f058cf0e84f953 (patch)
treea4e58d559670f3a5ed1cd75634e7050791707328 /tests
parent2d1d7bd16100eb9d702ef67897b2f62a972d6426 (diff)
downloadunja-c9a5143b2aa9b92d1fbff4c804f058cf0e84f953.tar.gz
unja-c9a5143b2aa9b92d1fbff4c804f058cf0e84f953.zip
add support for comments
Diffstat (limited to 'tests')
-rw-r--r--tests/test_template.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_template.c b/tests/test_template.c
index ac78677..d9f74ac 100644
--- a/tests/test_template.c
+++ b/tests/test_template.c
@@ -61,4 +61,11 @@ TEST(var_dot_notation) {
free(output);
}
+TEST(comments) {
+ char *input = "Hello {# comment here #} world.";
+ char *output = template(input, NULL);
+ assert_str(output, "Hello world.");
+ free(output);
+}
+
END_TESTS