From c2eec7524490c27e22bb9918ae54b34959c9407b Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 17 Nov 2018 21:34:58 -0600 Subject: [PATCH] Corrected expectations for preset loading test to match the file. --- src/test/GUI/test_preset.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/GUI/test_preset.cpp b/src/test/GUI/test_preset.cpp index 268a18c47..7b05b3f5e 100644 --- a/src/test/GUI/test_preset.cpp +++ b/src/test/GUI/test_preset.cpp @@ -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("adaptive_slicing").getBool() == false); + THEN("adaptive_slicing = 1 in the preset config") { + REQUIRE(item.dirty_config().get("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("adaptive_slicing").getBool() == true); + THEN("adaptive_slicing = 0 in the preset config") { + REQUIRE(item.dirty_config().get("adaptive_slicing").getBool() == false); } } }