aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-08 22:14:12 +0100
committerMax Kellermann <max@duempel.org>2014-01-08 22:14:12 +0100
commit139122c57f00b9abf2058fb8c481abb958926b5c (patch)
treee28c2c70eff66781c064d0305b005562f0346fd9 /test
parent959d7ca9d00ec480f88ef6ea45b3dab7f0e2b717 (diff)
parentfdd76b346171126e143835429a26044a1cbbfb8f (diff)
downloadmpd-139122c57f00b9abf2058fb8c481abb958926b5c.tar.gz
mpd-139122c57f00b9abf2058fb8c481abb958926b5c.tar.xz
mpd-139122c57f00b9abf2058fb8c481abb958926b5c.zip
Merge branch 'v0.18.x'
Diffstat (limited to 'test')
-rw-r--r--test/test_util.cxx4
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() {