From 701ffe18c2f256245b4d016daafca208839a8f63 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 12 Oct 2015 02:31:02 -0300 Subject: content-parser: added id attributes to headers the id is a slugified version of the (unparsed) header content. --- tests/check_source_parser.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/check_source_parser.c') diff --git a/tests/check_source_parser.c b/tests/check_source_parser.c index 94f75c9..145ba30 100644 --- a/tests/check_source_parser.c +++ b/tests/check_source_parser.c @@ -38,10 +38,10 @@ test_source_parse(void **state) 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, "EXCERPT"), - "

This is a test

\n" + "

This is a test

\n" "

bola

\n"); assert_string_equal(b_trie_lookup(source, "CONTENT"), - "

This is a test

\n" + "

This is a test

\n" "

bola

\n"); assert_string_equal(b_trie_lookup(source, "RAW_CONTENT"), "# This is a test\n" @@ -71,10 +71,10 @@ test_source_parse_with_spaces(void **state) 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, "EXCERPT"), - "

This is a test

\n" + "

This is a test

\n" "

bola

\n"); assert_string_equal(b_trie_lookup(source, "CONTENT"), - "

This is a test

\n" + "

This is a test

\n" "

bola

\n"); assert_string_equal(b_trie_lookup(source, "RAW_CONTENT"), "# This is a test\n" @@ -107,10 +107,10 @@ test_source_parse_with_excerpt(void **state) 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, "EXCERPT"), - "

This is a test

\n" + "

This is a test

\n" "

bola

\n"); assert_string_equal(b_trie_lookup(source, "CONTENT"), - "

This is a test

\n" + "

This is a test

\n" "

bola

\n" "

guda\n" "yay

\n"); -- cgit v1.2.3-18-g5258