diff options
author | Max Kellermann <max@duempel.org> | 2014-01-08 22:14:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-08 22:14:12 +0100 |
commit | 139122c57f00b9abf2058fb8c481abb958926b5c (patch) | |
tree | e28c2c70eff66781c064d0305b005562f0346fd9 /test | |
parent | 959d7ca9d00ec480f88ef6ea45b3dab7f0e2b717 (diff) | |
parent | fdd76b346171126e143835429a26044a1cbbfb8f (diff) |
Merge branch 'v0.18.x'
Diffstat (limited to 'test')
-rw-r--r-- | test/test_util.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_util.cxx b/test/test_util.cxx index 2ff303540..a472391a3 100644 --- a/test/test_util.cxx +++ b/test/test_util.cxx @@ -29,6 +29,10 @@ public: "jpg")); CPPUNIT_ASSERT_EQUAL(0, strcmp(uri_get_suffix("/foo.png/bar.jpg"), "jpg")); + CPPUNIT_ASSERT_EQUAL((const char *)nullptr, + uri_get_suffix(".jpg")); + CPPUNIT_ASSERT_EQUAL((const char *)nullptr, + uri_get_suffix("/foo/.jpg")); } void TestRemoveAuth() { |