-
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
Conversation
Thanks!
…On Tue, Oct 22, 2019, 1:34 PM Merill ***@***.***> wrote:
@supermerill <https://github.com/supermerill> requested your review on:
#4876 <#4876> some more tests as a
code owner.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#4876?email_source=notifications&email_token=AAAHYCS3Z5ZNY5GHWVTMKC3QP5BS7A5CNFSM4JDTVBG2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOUL5T7UA#event-2734374864>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAHYCRWXBIUMQYROMVNIBLQP5BS7ANCNFSM4JDTVBGQ>
.
|
✅ Build Slic3r 1.3.0-master-2369 completed (commit a1844fcd04 by @) |
@supermerill I'm seeing some failures in the build output, was that expected? |
|
||
SCENARIO("ExtrusionEntityCollection: Polygon flattening") { | ||
srand(0xDEADBEEF); // consistent seed for test reproducibility. | ||
|
||
// Generate one specific random path set and save it for later comparison | ||
ExtrusionPaths nosort_path_set {random_paths()}; | ||
ExtrusionPaths nosort_path_set{ random_paths() }; |
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
@@ -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 comment
The 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 comment
The 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)
I should had changes other tests also, i think that only this one bother me at the time because it is so large, a little difference in spacing can change the loop count.
Hi
I have written some tests that could make their way here.
I didn't had the time to test them since this merge, but i will do when possible.