test_avoid_crossing_perimeters.cpp 468 B

12345678910111213141516
  1. #include <catch2/catch.hpp>
  2. #include "test_data.hpp"
  3. using namespace Slic3r;
  4. SCENARIO("Avoid crossing perimeters", "[AvoidCrossingPerimeters]") {
  5. WHEN("Two 20mm cubes sliced") {
  6. std::string gcode = Slic3r::Test::slice(
  7. { Slic3r::Test::TestMesh::cube_20x20x20, Slic3r::Test::TestMesh::cube_20x20x20 },
  8. { { "avoid_crossing_perimeters", true } });
  9. THEN("gcode not empty") {
  10. REQUIRE(! gcode.empty());
  11. }
  12. }
  13. }