Commit 52e70bc9 authored by Dominik Charousset's avatar Dominik Charousset

Add missing WHEN block

parent 656c6b43
...@@ -84,12 +84,14 @@ CAF_TEST_FIXTURE_SCOPE(config_value_tests, fixture) ...@@ -84,12 +84,14 @@ CAF_TEST_FIXTURE_SCOPE(config_value_tests, fixture)
SCENARIO("default-constructed config values represent null") { SCENARIO("default-constructed config values represent null") {
GIVEN("a default-constructed config value") { GIVEN("a default-constructed config value") {
config_value x; config_value x;
WHEN("inspecting the config value") {
THEN("its type is none and its to_string output is 'null'") { THEN("its type is none and its to_string output is 'null'") {
CHECK(holds_alternative<none_t>(x)); CHECK(holds_alternative<none_t>(x));
CHECK_EQ(x.type_name(), "none"s); CHECK_EQ(x.type_name(), "none"s);
CHECK_EQ(to_string(x), "null"s); CHECK_EQ(to_string(x), "null"s);
} }
} }
}
} }
SCENARIO("get_as can convert config values to boolean") { SCENARIO("get_as can convert config values to boolean") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment