foreseen

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

commit 4ee1b99f354e033ff929f6f7cfd001323687bcda
parent 4e4426a3a779b9c6d6debcb0bfed8eb1c17db9c0
Author: Andrew Laack <andrew@laack.co>
Date:   Sat,  3 Oct 2026 15:36:31 -0500

Fix test

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

diff --git a/tests/pure-test.cpp b/tests/pure-test.cpp @@ -60,6 +60,11 @@ TEST_CASE("Verify urls with numeric prefix are resolved correctly") { } TEST_CASE("Inputs with spaces outside of the cli are always searched") { + + if(DEFAULT_SEARCH_ENGINE.substr(DEFAULT_SEARCH_ENGINE.size()-1) != "?") { + DEFAULT_SEARCH_ENGINE += "?"; + } + auto d1 = handleDestinationResolution("what :// :// test", false); REQUIRE(d1.destination == "gemini://tlgs.one/search?what%20%3A%2F%2F%20%3A%2F%2F%20test"); rc::check("Inputs with spaces outside of the cli are always searched",