mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-05 12:36:30 +08:00
Corrected expectations for preset loading test to match the file.
This commit is contained in:
parent
dc3b420c09
commit
c2eec75244
@ -162,8 +162,8 @@ SCENARIO( "Preset loading" ) {
|
||||
THEN("Config is not dirty.") {
|
||||
REQUIRE(item.dirty() == false);
|
||||
}
|
||||
THEN("adaptive_slicing = 0 in the preset config") {
|
||||
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == false);
|
||||
THEN("adaptive_slicing = 1 in the preset config") {
|
||||
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == true);
|
||||
}
|
||||
THEN("loaded is true") {
|
||||
REQUIRE(item.loaded() == true);
|
||||
@ -172,14 +172,14 @@ SCENARIO( "Preset loading" ) {
|
||||
REQUIRE(item.load_config() == ref);
|
||||
}
|
||||
}
|
||||
ref = item.load_config();
|
||||
WHEN("Option is changed in the config") {
|
||||
ref->set("adaptive_slicing", true);
|
||||
ref = item.load_config();
|
||||
ref->set("adaptive_slicing", false);
|
||||
THEN("Config is dirty.") {
|
||||
REQUIRE(item.dirty() == true);
|
||||
}
|
||||
THEN("adaptive_slicing = 1 in the preset config") {
|
||||
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == true);
|
||||
THEN("adaptive_slicing = 0 in the preset config") {
|
||||
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user