diff options
author | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-18 14:55:59 +0100 |
---|---|---|
committer | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-18 14:55:59 +0100 |
commit | a13b511a582e0414476b810d2a0096dae088ee78 (patch) | |
tree | 2c6fb9dfea7807239b00703dd1a5878d63c5db1f /tests | |
parent | 379219bbe4a7843bb32ea6dc7eca375105f2a909 (diff) | |
download | unja-a13b511a582e0414476b810d2a0096dae088ee78.tar.gz unja-a13b511a582e0414476b810d2a0096dae088ee78.zip |
inheritance working for depth 1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_template.c | 6 |
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 |