aboutsummaryrefslogtreecommitdiff
path: root/test/configcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/configcontainer.cpp')
-rw-r--r--test/configcontainer.cpp7
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");