diff options
-rw-r--r-- | src/template-parser.c | 2 | ||||
-rw-r--r-- | tests/check_renderer.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/template-parser.c b/src/template-parser.c index a91182f..42fc5e2 100644 --- a/src/template-parser.c +++ b/src/template-parser.c @@ -271,7 +271,7 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err) } *err = blogc_error_parser(BLOGC_ERROR_TEMPLATE_PARSER, src, src_len, current, - "Invalid statement syntax. Must end with '%}'."); + "Invalid statement syntax. Must end with '%%}'."); break; case TEMPLATE_VARIABLE_START: diff --git a/tests/check_renderer.c b/tests/check_renderer.c index 681b821..1d3c205 100644 --- a/tests/check_renderer.c +++ b/tests/check_renderer.c @@ -379,7 +379,7 @@ static void test_format_date(void **state) { b_trie_t *g = b_trie_new(free); - b_trie_insert(g, "DATE_FORMAT", b_strdup("%H -- %j")); + b_trie_insert(g, "DATE_FORMAT", b_strdup("%H -- %M")); b_trie_t *l = b_trie_new(free); b_trie_insert(l, "DATE", b_strdup("2015-01-02 03:04:05")); b_trie_insert(l, "DATE_FORMAT", b_strdup("%R")); @@ -395,11 +395,11 @@ static void test_format_date_with_global_format(void **state) { b_trie_t *g = b_trie_new(free); - b_trie_insert(g, "DATE_FORMAT", b_strdup("%H -- %j")); + b_trie_insert(g, "DATE_FORMAT", b_strdup("%H -- %M")); b_trie_t *l = b_trie_new(free); b_trie_insert(l, "DATE", b_strdup("2015-01-02 03:04:05")); char *date = blogc_format_date(g, l); - assert_string_equal(date, "03 -- 002"); + assert_string_equal(date, "03 -- 04"); free(date); b_trie_free(g); b_trie_free(l); |