From c9a5143b2aa9b92d1fbff4c804f058cf0e84f953 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Thu, 12 Mar 2020 21:45:18 +0100 Subject: add support for comments --- tests/test_template.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3