diff options
author | Max Kellermann <max@musicpd.org> | 2019-06-15 14:06:50 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-06-15 14:06:50 +0200 |
commit | fcf641596322d6d51176593fe3df8d16b8f29934 (patch) | |
tree | e3806fd93b5559fa0a019028ed10e1603dc91cd6 /test | |
parent | be79b44dc873f7bff3bcdbb0353bb4036e140794 (diff) |
archive/Lookup: pass class Path
Diffstat (limited to 'test')
-rw-r--r-- | test/test_archive.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_archive.cxx b/test/test_archive.cxx index ff3a93314..55e655b21 100644 --- a/test/test_archive.cxx +++ b/test/test_archive.cxx @@ -8,22 +8,22 @@ TEST(ArchiveTest, Lookup) { - EXPECT_THROW(archive_lookup(""), std::system_error); + EXPECT_THROW(archive_lookup(Path::FromFS("")), std::system_error); - EXPECT_FALSE(archive_lookup(".")); + EXPECT_FALSE(archive_lookup(Path::FromFS("."))); - EXPECT_FALSE(archive_lookup("config.h")); + EXPECT_FALSE(archive_lookup(Path::FromFS("config.h"))); - EXPECT_THROW(archive_lookup("src/foo/bar"), std::system_error); + EXPECT_THROW(archive_lookup(Path::FromFS("src/foo/bar")), std::system_error); fclose(fopen("dummy", "w")); - auto result = archive_lookup("dummy/foo/bar"); + auto result = archive_lookup(Path::FromFS("dummy/foo/bar")); EXPECT_TRUE(result); EXPECT_STREQ(result.archive.c_str(), "dummy"); EXPECT_STREQ(result.inside.c_str(), "foo/bar"); - result = archive_lookup("config.h/foo/bar"); + result = archive_lookup(Path::FromFS("config.h/foo/bar")); EXPECT_TRUE(result); EXPECT_STREQ(result.archive.c_str(), "config.h"); EXPECT_STREQ(result.inside.c_str(), "foo/bar"); |