This CL adds a simple regression test for flip_normals().
Tests: add regression test for flip_normals() operator
Docs: minor fix to RunTest.run_test()'s test_name type
Updated blend file should be placed in lib/tests/modeling/operators.blend
Differential D11802
Tests: add regression test for `flip_normals()` operator Authored by Andrea Beconcini (beco) on Jul 4 2021, 4:32 PM.
Details
This CL adds a simple regression test for flip_normals(). Tests: add regression test for flip_normals() operator Updated blend file should be placed in lib/tests/modeling/operators.blend
Diff Detail
Event TimelineComment Actions Hi @Andrea Beconcini (beco), thanks for the patch. The patch is fine in principle, however there a few things I would like to suggest:
Also, add a reviewer to your patches in the future so that they get noticed earlier. Comment Actions Hi @Habib Gahbiche (zazizizou), thanks for the suggestions. Comment Actions
That is for local testing only, all tests committed in repo should pass. Comment Actions
Oh, I did it already then. I created the expected mesh as a simple clone of the test mesh, wrote the test and watched it fail. Then I flipped the normal on the expected object and... profit! (not really earning anything, though ๐ ). I've just done it again, just in case.. Thank you, @Ankit Meel (ankitm) for the explanation. Let me know if there's anything else I need to do! Comment Actions Passes and fails properly. Merged the changes from the .blend in the description with the most recent version and replaced it in the description. |