From 37e484d838515be19cfffbc72d6530a9c2e5850e Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 15 Jul 2018 10:25:15 -0500 Subject: [PATCH] Check a few more unset options with getInt and getBool --- src/test/libslic3r/test_config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/libslic3r/test_config.cpp b/src/test/libslic3r/test_config.cpp index 6772c718b..53a53bf61 100644 --- a/src/test/libslic3r/test_config.cpp +++ b/src/test/libslic3r/test_config.cpp @@ -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.") { REQUIRE(config->getFloat("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); } }