-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some more tests #4876
base: master
Are you sure you want to change the base?
some more tests #4876
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,8 +138,18 @@ SCENARIO("Print: Brim generation") { | |
config->set("first_layer_extrusion_width", 0.5); | ||
auto print {Slic3r::Test::init_print({m}, model, config)}; | ||
print->make_brim(); | ||
THEN("Brim Extrusion collection has 12 loops in it") { | ||
REQUIRE(print->brim.items_count() == 12); | ||
double nbLoops = 6.0 / print->brim_flow().spacing(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the change here for the extrusion collection? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made it that way because I wanted it to check if it makes the correct number of loop and not checking if the spacing is exactly what we tough about it (the layer heigh isn't set, btw) |
||
THEN("Brim Extrusion collection has " + std::to_string(nbLoops) + " loops in it (flow="+ std::to_string(print->brim_flow().spacing())+")") { | ||
REQUIRE(print->brim.items_count() == floor(nbLoops)); | ||
} | ||
} | ||
WHEN("Brim ears activated, 3mm") { | ||
config->set("brim_width", 3); | ||
config->set("brim_ears", true); | ||
shared_Print print{ Slic3r::Test::init_print({m}, model, config) }; | ||
print->process(); | ||
THEN("Brim ears Extrusion collection has 4 extrusions in it") { | ||
REQUIRE(print->brim.items_count() == 4); | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this the result of an automatic code formatter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably