patch: Feature/ygo set selection (#16)

This commit is contained in:
Sebastian Dine
2026-05-13 21:16:41 +02:00
committed by GitHub
parent 8a50e8daba
commit 42926f2fb5
32 changed files with 827 additions and 52 deletions
+11
View File
@@ -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);
}
}