mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 13:42:00 +08:00
Check a few more unset options with getInt and getBool
This commit is contained in:
parent
65676215cc
commit
37e484d838
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user