mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-28 17:01:02 +00:00
patch: Feature/ygo set selection (#16)
This commit is contained in:
@@ -202,4 +202,15 @@ TEST_SUITE("StdFileSystem") {
|
||||
REQUIRE(filled.isOk());
|
||||
CHECK(filled.value().size() == 2u);
|
||||
}
|
||||
|
||||
TEST_CASE("writeText fails when the path names an existing directory") {
|
||||
TempDir td;
|
||||
StdFileSystem fs;
|
||||
const auto dir = td.path / "is_dir";
|
||||
REQUIRE(fs.ensureDirectory(dir).isOk());
|
||||
|
||||
const auto r = fs.writeText(dir, "cannot-write-here");
|
||||
REQUIRE(r.isErr());
|
||||
CHECK(r.error().find("Unable to create file") != std::string::npos);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user