mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 15:55:53 +08:00
Remove some dead code in the printgcode test.
This commit is contained in:
parent
371d87ce96
commit
64b0d7c709
@ -11,17 +11,12 @@ SCENARIO("PrintObject: object layer heights") {
|
||||
auto config {Slic3r::Config::new_from_defaults()};
|
||||
TestMesh m { TestMesh::cube_20x20x20 };
|
||||
Slic3r::Model model;
|
||||
auto event_counter {0U};
|
||||
std::string stage;
|
||||
int value {0};
|
||||
config->set("fill_density", 0);
|
||||
config->set("nozzle_diameter", "3");
|
||||
config->set("layer_height", 2.0);
|
||||
config->set("first_layer_height", 2.0);
|
||||
|
||||
WHEN("generate_object_layers() is called with a starting layer of 2mm") {
|
||||
auto print {Slic3r::Test::init_print({m}, model, config)};
|
||||
const auto& object = *(print->objects.at(0));
|
||||
auto result {print->objects[0]->generate_object_layers(2.0)};
|
||||
THEN("The output vector has 10 entries") {
|
||||
REQUIRE(result.size() == 10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user