Check a few more unset options with getInt and getBool

This commit is contained in:
Joseph Lenox 2018-07-15 10:25:15 -05:00
parent 65676215cc
commit 37e484d838

View File

@ -131,10 +131,13 @@ SCENARIO("Config accessor functions perform as expected.") {
} }
} }
WHEN("getFloat called on an unset option.") { WHEN("getX called on an unset option.") {
THEN("The default is returned.") { THEN("The default is returned.") {
REQUIRE(config->getFloat("layer_height") == 0.3); REQUIRE(config->getFloat("layer_height") == 0.3);
REQUIRE(config->getString("layer_height") == "0.3"); REQUIRE(config->getString("layer_height") == "0.3");
REQUIRE(config->getString("layer_height") == "0.3");
REQUIRE(config->getInt("raft_layers") == 0);
REQUIRE(config->getBool("support_material") == false);
} }
} }