From b24efa3885637d953892ccf718662aa693eaa879 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 7 May 2015 22:35:18 -0300 Subject: content-parser: more random stuff --- tests/check_source_parser.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/check_source_parser.c') diff --git a/tests/check_source_parser.c b/tests/check_source_parser.c index 0838f41..c779ed3 100644 --- a/tests/check_source_parser.c +++ b/tests/check_source_parser.c @@ -34,10 +34,13 @@ test_source_parse(void **state) b_trie_t *source = blogc_source_parse(a, strlen(a), &err); assert_null(err); assert_non_null(source); - assert_int_equal(b_trie_size(source), 3); + assert_int_equal(b_trie_size(source), 4); assert_string_equal(b_trie_lookup(source, "VAR1"), "asd asd"); assert_string_equal(b_trie_lookup(source, "VAR2"), "123chunda"); assert_string_equal(b_trie_lookup(source, "CONTENT"), + "

This is a test

\n" + "

bola

\n"); + assert_string_equal(b_trie_lookup(source, "RAW_CONTENT"), "# This is a test\n" "\n" "bola\n"); @@ -61,10 +64,13 @@ test_source_parse_with_spaces(void **state) b_trie_t *source = blogc_source_parse(a, strlen(a), &err); assert_null(err); assert_non_null(source); - assert_int_equal(b_trie_size(source), 3); + assert_int_equal(b_trie_size(source), 4); assert_string_equal(b_trie_lookup(source, "VAR1"), "chunda"); assert_string_equal(b_trie_lookup(source, "BOLA"), "guda"); assert_string_equal(b_trie_lookup(source, "CONTENT"), + "

This is a test

\n" + "

bola

\n"); + assert_string_equal(b_trie_lookup(source, "RAW_CONTENT"), "# This is a test\n" "\n" "bola\n"); -- cgit v1.2.3-18-g5258