aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-10-12 14:47:58 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-10-12 14:47:58 -0300
commitbc77a047d62111a0be193ff94d387ae24c92bce2 (patch)
treec67a026b48cf77e83ff87cfe5c81e2b928f07d34 /tests
parentb94a127ccdb4aac480cee39f0799a10a2f6c7297 (diff)
downloadblogc-bc77a047d62111a0be193ff94d387ae24c92bce2.tar.gz
blogc-bc77a047d62111a0be193ff94d387ae24c92bce2.tar.bz2
blogc-bc77a047d62111a0be193ff94d387ae24c92bce2.zip
content-parser: added missing test
Diffstat (limited to 'tests')
-rw-r--r--tests/check_content_parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check_content_parser.c b/tests/check_content_parser.c
index f1430ac..37c1761 100644
--- a/tests/check_content_parser.c
+++ b/tests/check_content_parser.c
@@ -22,7 +22,9 @@
static void
test_slugify(void **state)
{
- char *s = blogc_slugify("bola");
+ char *s = blogc_slugify(NULL);
+ assert_null(s);
+ s = blogc_slugify("bola");
assert_string_equal(s, "bola");
free(s);
s = blogc_slugify("bola o");