mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-05 18:26:32 +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.") {
|
THEN("Config is not dirty.") {
|
||||||
REQUIRE(item.dirty() == false);
|
REQUIRE(item.dirty() == false);
|
||||||
}
|
}
|
||||||
THEN("adaptive_slicing = 0 in the preset config") {
|
THEN("adaptive_slicing = 1 in the preset config") {
|
||||||
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == false);
|
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == true);
|
||||||
}
|
}
|
||||||
THEN("loaded is true") {
|
THEN("loaded is true") {
|
||||||
REQUIRE(item.loaded() == true);
|
REQUIRE(item.loaded() == true);
|
||||||
@ -172,14 +172,14 @@ SCENARIO( "Preset loading" ) {
|
|||||||
REQUIRE(item.load_config() == ref);
|
REQUIRE(item.load_config() == ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ref = item.load_config();
|
|
||||||
WHEN("Option is changed in the 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.") {
|
THEN("Config is dirty.") {
|
||||||
REQUIRE(item.dirty() == true);
|
REQUIRE(item.dirty() == true);
|
||||||
}
|
}
|
||||||
THEN("adaptive_slicing = 1 in the preset config") {
|
THEN("adaptive_slicing = 0 in the preset config") {
|
||||||
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == true);
|
REQUIRE(item.dirty_config().get<ConfigOptionBool>("adaptive_slicing").getBool() == false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user