diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-11-05 19:41:55 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-11-05 22:35:47 +0000 |
| commit | 5b8cb9394c8e01763d300dbb57a7ded19edf96b1 (patch) | |
| tree | 99116cb59d1102c80e48022251d50718523a485f /testfiles | |
| parent | ContextMenu: Harmonize with menu bar (diff) | |
| download | inkscape-5b8cb9394c8e01763d300dbb57a7ded19edf96b1.tar.gz inkscape-5b8cb9394c8e01763d300dbb57a7ded19edf96b1.zip | |
fix URI::from_dirname("/")
Diffstat (limited to 'testfiles')
| -rw-r--r-- | testfiles/src/uri-test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testfiles/src/uri-test.cpp b/testfiles/src/uri-test.cpp index 3494386d9..6f0787af5 100644 --- a/testfiles/src/uri-test.cpp +++ b/testfiles/src/uri-test.cpp @@ -26,8 +26,10 @@ TEST(UriTest, FromDir) { #ifdef _WIN32 ASSERT_EQ(URI::from_dirname("C:\\tmp").str(), "file:///C:/tmp/"); + ASSERT_EQ(URI::from_dirname("C:\\").str(), "file:///C:/"); ASSERT_EQ(URI::from_href_and_basedir("uri.svg", "C:\\tmp").str(), "file:///C:/tmp/uri.svg"); #else + ASSERT_EQ(URI::from_dirname("/").str(), "file:///"); ASSERT_EQ(URI::from_dirname("/tmp").str(), "file:///tmp/"); ASSERT_EQ(URI::from_href_and_basedir("uri.svg", "/tmp").str(), "file:///tmp/uri.svg"); #endif |
