summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/tests/FilePathTest.cpp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-16 03:01:06 +0000
committerNorbert Preining <norbert@preining.info>2020-03-16 03:01:06 +0000
commitd50a41b6ab3d05fe5605a3a3b50ff68f61059296 (patch)
tree29468e087e9c19acf30b392dc705a54288d79137 /dviware/dvisvgm/tests/FilePathTest.cpp
parent87cddce361c3b477029d13b27bdaa57190b2d74b (diff)
CTAN sync 202003160301
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");
}