From 3cfccf1a5af0387c1f1015a8f4c7b2bccfe2b68a Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 29 Oct 2020 12:39:03 +0100 Subject: [PATCH] Fixed unit tests broken with 3502f256fac0d0793f8314a7ab4a2788e93d74f8 --- tests/libslic3r/test_config.cpp | 12 ++++++------ tests/libslic3r/test_voronoi.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/libslic3r/test_config.cpp b/tests/libslic3r/test_config.cpp index 85055aa65..c3f17def2 100644 --- a/tests/libslic3r/test_config.cpp +++ b/tests/libslic3r/test_config.cpp @@ -98,21 +98,21 @@ SCENARIO("Config accessor functions perform as expected.", "[Config]") { } } WHEN("A string option is set through the string interface") { - config.set("printhost_apikey", "100"); + config.set("end_gcode", "100"); THEN("The underlying value is set correctly.") { - REQUIRE(config.opt("printhost_apikey")->value == "100"); + REQUIRE(config.opt("end_gcode")->value == "100"); } } WHEN("A string option is set through the integer interface") { - config.set("printhost_apikey", 100); + config.set("end_gcode", 100); THEN("The underlying value is set correctly.") { - REQUIRE(config.opt("printhost_apikey")->value == "100"); + REQUIRE(config.opt("end_gcode")->value == "100"); } } WHEN("A string option is set through the double interface") { - config.set("printhost_apikey", 100.5); + config.set("end_gcode", 100.5); THEN("The underlying value is set correctly.") { - REQUIRE(config.opt("printhost_apikey")->value == std::to_string(100.5)); + REQUIRE(config.opt("end_gcode")->value == std::to_string(100.5)); } } WHEN("A float or percent is set as a percent through the string interface.") { diff --git a/tests/libslic3r/test_voronoi.cpp b/tests/libslic3r/test_voronoi.cpp index ba318e4fd..b847a890b 100644 --- a/tests/libslic3r/test_voronoi.cpp +++ b/tests/libslic3r/test_voronoi.cpp @@ -144,7 +144,7 @@ TEST_CASE("Voronoi missing edges - Alessandro gapfill 12707", "[Voronoi]") Polygon poly; std::mt19937 gen; - std::uniform_int_distribution dist(-100, 100); + std::uniform_int_distribution dist(-100, 100); for (size_t i = 0; i < lines.size(); ++ i) { Line &l1 = lines[i]; Line &l2 = lines[(i + 1) % lines.size()];