commit 2dce468fc819fcfe39561f195dba111434edf828
parent 83e3ac80d967353229a75450a6fe600c21d34b31
Author: Andrew Laack <andrew@laack.co>
Date: Wed, 30 Sep 2026 10:35:42 -0500
Fixed broken file path export test
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/browser-test.cpp b/tests/browser-test.cpp
@@ -136,16 +136,16 @@ TEST_CASE("Test page downloading.") {
}
-TEST_CASE("Test downloading to specific location") {
+TEST_CASE("Test downloading to specific directory") {
std::filesystem::path cwd = std::filesystem::current_path();
Browser b{};
b.goToSite("gemini://blog.laack.co");
REQUIRE(b.getCurrentLink()->getLinkDestination().to_string() == "gemini://blog.laack.co");
- std::string destination = b.tryDownloadPage(cwd / "out.gmi");
+ std::string destination = b.tryDownloadPage(cwd);
std::string out = readFileToString(destination);
REQUIRE(out == b.getCurrentSite()->getBody());
- REQUIRE(destination == cwd / "out.gmi");
+ REQUIRE(destination == cwd / "blog.laack.co");
REQUIRE(std::filesystem::remove(destination));
}
diff --git a/tests/puppet-test.cpp b/tests/puppet-test.cpp
@@ -265,7 +265,7 @@ TEST_CASE("Only return false on 'q' entry when not using input boxes, never cras
TEST_CASE("Only return false on 'q' entry when not using input boxes, alphanumeric inputs") {
setenv("EDITOR", "test" , 1);
- for(int i = 0; i < 5; ++i) {
+ for(int i = 0; i < 10; ++i) {
Browser b {};
DrawState ds {};
std::string st = genAlNumNlSp(rand()%100);