summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/config.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/config.cpp b/tests/config.cpp
index 346dea1..ddea151 100644
--- a/tests/config.cpp
+++ b/tests/config.cpp
@@ -4,18 +4,18 @@
TEST_CASE("Config basic")
{
- Config::filename = "test.cfg";
- Config::file_must_exist = false;
+ // Write a value in the config file
+ Config::read_conf("test.cfg");
Config::set("coucou", "bonjour", true);
- Config::close();
+ Config::clear();
bool error = false;
try
{
- Config::file_must_exist = true;
+ CHECK(Config::read_conf());
CHECK(Config::get("coucou", "") == "bonjour");
CHECK(Config::get("does not exist", "default") == "default");
- Config::close();
+ Config::clear();
}
catch (const std::ios::failure& e)
{