diff options
author | 2024-07-15 21:30:43 +0200 | |
---|---|---|
committer | 2024-11-22 20:48:31 +0300 | |
commit | 6ef25d77a530eafa3f78de6462ed07093e2e952e (patch) | |
tree | 9d2533ee68f8dfca7906e177c2e6021dbdf43a54 /test/configcontainer.cpp | |
parent | c73a3f0411a0d797197103ad0aafa25b06829336 (diff) | |
download | newsboat-6ef25d77a530eafa3f78de6462ed07093e2e952e.tar.gz newsboat-6ef25d77a530eafa3f78de6462ed07093e2e952e.tar.zst newsboat-6ef25d77a530eafa3f78de6462ed07093e2e952e.zip |
Remove implicit Filepath conversions from a few miscelaneous files
Diffstat (limited to 'test/configcontainer.cpp')
-rw-r--r-- | test/configcontainer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/configcontainer.cpp b/test/configcontainer.cpp index c1015fbc..70734692 100644 --- a/test/configcontainer.cpp +++ b/test/configcontainer.cpp @@ -1,5 +1,3 @@ -#define ENABLE_IMPLICIT_FILEPATH_CONVERSIONS - #include "configcontainer.h" #include <unordered_set> @@ -20,7 +18,8 @@ TEST_CASE("Parses test config without exceptions", "[ConfigContainer]") KeyMap k(KM_NEWSBOAT); cfgparser.register_handler("macro", k); - REQUIRE_NOTHROW(cfgparser.parse_file("data/test-config.txt")); + REQUIRE_NOTHROW(cfgparser.parse_file( + Filepath::from_locale_string("data/test-config.txt"))); SECTION("bool value") { REQUIRE(cfg.get_configvalue("show-read-feeds") == "no"); @@ -54,7 +53,7 @@ TEST_CASE( cfg.register_commands(cfgparser); REQUIRE_NOTHROW(cfgparser.parse_file( - "data/test-config-without-newline-at-the-end.txt")); + Filepath::from_locale_string("data/test-config-without-newline-at-the-end.txt"))); SECTION("first line") { REQUIRE(cfg.get_configvalue("browser") == "firefox"); |