summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/tests/FilePathTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/tests/FilePathTest.cpp')
-rw-r--r--dviware/dvisvgm/tests/FilePathTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/dviware/dvisvgm/tests/FilePathTest.cpp b/dviware/dvisvgm/tests/FilePathTest.cpp
index 6cce81ef43..d5b6f67d4b 100644
--- a/dviware/dvisvgm/tests/FilePathTest.cpp
+++ b/dviware/dvisvgm/tests/FilePathTest.cpp
@@ -2,7 +2,7 @@
** FilePathTest.cpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2019 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2020 Martin Gieseking <martin.gieseking@uos.de> **
** **
** This program is free software; you can redistribute it and/or **
** modify it under the terms of the GNU General Public License as **
@@ -77,6 +77,9 @@ TEST(FilePathTest, file1) {
fp.suffix("new");
ASSERT_EQ(fp.suffix(), "new");
ASSERT_EQ(fp.relative("/a/b/x/y"), "../../c/d/f.new");
+ fp.suffix("");
+ ASSERT_EQ(fp.suffix(), "");
+ ASSERT_EQ(fp.relative("/a/b/x/y"), "../../c/d/f");
}