aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-18 14:55:59 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-18 14:55:59 +0100
commita13b511a582e0414476b810d2a0096dae088ee78 (patch)
tree2c6fb9dfea7807239b00703dd1a5878d63c5db1f /tests
parent379219bbe4a7843bb32ea6dc7eca375105f2a909 (diff)
downloadunja-a13b511a582e0414476b810d2a0096dae088ee78.tar.gz
unja-a13b511a582e0414476b810d2a0096dae088ee78.zip
inheritance working for depth 1
Diffstat (limited to 'tests')
-rw-r--r--tests/test_template.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_template.c b/tests/test_template.c
index d4f4e7f..92f179c 100644
--- a/tests/test_template.c
+++ b/tests/test_template.c
@@ -215,14 +215,12 @@ TEST(buffer_alloc) {
free(output);
}
-TEST(directory) {
+TEST(inheritance) {
struct env *env = env_new("./tests/data/01/");
char *output = template(env, "child.tmpl", NULL);
- assert_str(output, "Header\n\nChild content\n\nFooter");
+ assert_str(output, "Header\n\n\nChild content\n\n\n\nFooter\n");
free(output);
env_free(env);
}
-
-
END_TESTS \ No newline at end of file