diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-29 01:46:50 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-29 01:46:50 +0100 |
commit | 3d24a8847e156804e19515ddeefd3912402515be (patch) | |
tree | 01c79d43b529df75211b991c74f35c2782a177ff /tests/check_renderer.c | |
parent | e727bdcde63804a308103adeaa2637c5ee1ebdc8 (diff) | |
download | blogc-3d24a8847e156804e19515ddeefd3912402515be.tar.gz blogc-3d24a8847e156804e19515ddeefd3912402515be.tar.bz2 blogc-3d24a8847e156804e19515ddeefd3912402515be.zip |
renderer: foreach variables should be splitted in spaces rather than commas
Diffstat (limited to 'tests/check_renderer.c')
-rw-r--r-- | tests/check_renderer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/check_renderer.c b/tests/check_renderer.c index cc04fdc..e380be7 100644 --- a/tests/check_renderer.c +++ b/tests/check_renderer.c @@ -31,7 +31,7 @@ create_sources(unsigned int count) "GUDA2: zxc\n" "DATE: 2015-01-02 03:04:05\n" "DATE_FORMAT: %R\n" - "TAGS: foo, bar,baz\n" + "TAGS: foo bar baz\n" "-----\n" "ahahahahahahahaha", "BOLA: asd2\n" @@ -796,9 +796,9 @@ static void test_split_list_variable(void **state) { b_trie_t *g = b_trie_new(free); - b_trie_insert(g, "TAGS", b_strdup("asd, lol,hehe")); + b_trie_insert(g, "TAGS", b_strdup("asd lol hehe")); b_trie_t *l = b_trie_new(free); - b_trie_insert(l, "TAGS", b_strdup("asd, lol,XD")); + b_trie_insert(l, "TAGS", b_strdup("asd lol XD")); b_slist_t *tmp = blogc_split_list_variable("TAGS", g, l); assert_string_equal(tmp->data, "asd"); assert_string_equal(tmp->next->data, "lol"); @@ -813,9 +813,9 @@ static void test_split_list_variable_not_found(void **state) { b_trie_t *g = b_trie_new(free); - b_trie_insert(g, "TAGS", b_strdup("asd, lol,hehe")); + b_trie_insert(g, "TAGS", b_strdup("asd lol hehe")); b_trie_t *l = b_trie_new(free); - b_trie_insert(l, "TAGS", b_strdup("asd, lol,XD")); + b_trie_insert(l, "TAGS", b_strdup("asd lol XD")); b_slist_t *tmp = blogc_split_list_variable("TAG", g, l); assert_null(tmp); b_trie_free(g); |