aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/test/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/configuration/test/main.cpp')
-rw-r--r--lib/configuration/test/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/configuration/test/main.cpp b/lib/configuration/test/main.cpp
index 06f7cb0..d83f7af 100644
--- a/lib/configuration/test/main.cpp
+++ b/lib/configuration/test/main.cpp
@@ -17,16 +17,16 @@ SCENARIO("Configuration")
{ "other", std::string("not in cfg") },
// commented out entry in the conf file
{ "comment", std::string("123.456") },
- { "number", int(0) },
- { "toggle", bool(false) },
+ { "number", 0 },
+ { "toggle", false },
{ "main/name", std::string() },
- { "main/number", int(0) },
- { "main/toggle", bool(true) },
+ { "main/number", 0 },
+ { "main/toggle", true },
{ "extra/name", std::string() },
- { "extra/number", int(0) },
- { "extra/toggle", bool(false) },
+ { "extra/number", 0 },
+ { "extra/toggle", false },
};
WHEN("reading default values")
@@ -132,8 +132,8 @@ SCENARIO("Configuration")
{
std::unique_ptr<Configuration> global_conf = std::make_unique<Configuration, std::initializer_list<std::pair<std::string, conf_value_t>>>({
{ "name", std::string("global") },
- { "number", int(123) },
- { "toggle", bool(true) },
+ { "number", 123 },
+ { "toggle", true },
});