diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-06-13 03:32:21 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-06-13 03:32:21 -0300 |
commit | 3aeccf252c8c266b51c1a2cc1dc9e9e3d5bf2f90 (patch) | |
tree | bc7a75a51d2fbf180c9d63ee1164b93ca21b9b6f /tests/check_loader.c | |
parent | 168de93a068e489eb96c541172de5e43e13a5873 (diff) | |
download | blogc-3aeccf252c8c266b51c1a2cc1dc9e9e3d5bf2f90.tar.gz blogc-3aeccf252c8c266b51c1a2cc1dc9e9e3d5bf2f90.tar.bz2 blogc-3aeccf252c8c266b51c1a2cc1dc9e9e3d5bf2f90.zip |
content-parser: implemented excerpt, and now for good!
Diffstat (limited to 'tests/check_loader.c')
-rw-r--r-- | tests/check_loader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/check_loader.c b/tests/check_loader.c index 865d598..f5be3e7 100644 --- a/tests/check_loader.c +++ b/tests/check_loader.c @@ -113,9 +113,10 @@ test_source_parse_from_file(void **state) b_trie_t *t = blogc_source_parse_from_file("bola.txt", &err); assert_null(err); assert_non_null(t); - assert_int_equal(b_trie_size(t), 4); + assert_int_equal(b_trie_size(t), 5); assert_string_equal(b_trie_lookup(t, "ASD"), "123"); assert_string_equal(b_trie_lookup(t, "FILENAME"), "bola"); + assert_string_equal(b_trie_lookup(t, "EXCERPT"), "<p>bola</p>\n"); assert_string_equal(b_trie_lookup(t, "CONTENT"), "<p>bola</p>\n"); assert_string_equal(b_trie_lookup(t, "RAW_CONTENT"), "bola"); b_trie_free(t); |