foreseen

A text-based gemini browser with prefetching.
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

commit ddfe17f0f0195ee38f407a1db7e97d8ada8bcb34
parent 5b21124eb30f3fa0f19cd16a7be9c56e5be9246b
Author: Andrew Laack <andrew@laack.co>
Date:   Fri, 25 Sep 2026 11:56:05 -0500

Fixed test

Diffstat:
Mtests/pure-test.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/pure-test.cpp b/tests/pure-test.cpp @@ -15,7 +15,7 @@ TEST_CASE("Test trivial line breaking") { std::pair<std::string, TextRender> current {"this is a simple test line", TextRender{10,false}}; strLs.push_back(current); } - auto result = breakLines(strLs, 10); + auto result = breakLines(strLs, 10,80); REQUIRE(result.size() == 30); } @@ -37,7 +37,7 @@ TEST_CASE("Test width invariant") { strLs.push_back(current); } - auto result = breakLines(strLs, 80); + auto result = breakLines(strLs, 80,80); for(auto& res: result) { REQUIRE(res.first.size() <= 80); @@ -61,7 +61,7 @@ TEST_CASE("Test lots of spaces") { strLs.push_back(current); } - auto result = breakLines(strLs, 80); + auto result = breakLines(strLs, 80,80); for(auto& res: result) { REQUIRE(res.first.size() <= 80);