mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
Fix / improvement of unit tests.
This commit is contained in:
parent
2e7e95adae
commit
9e8ce66f70
3 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
||||||
#ifndef slic3r_SpiralVase_hpp_
|
#ifndef slic3r_SpiralVase_hpp_
|
||||||
#define slic3r_SpiralVase_hpp_
|
#define slic3r_SpiralVase_hpp_
|
||||||
|
|
||||||
#include "libslic3r.h"
|
#include "../libslic3r.h"
|
||||||
#include "GCodeReader.hpp"
|
#include "../GCodeReader.hpp"
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
using namespace Slic3r;
|
using namespace Slic3r;
|
||||||
|
|
||||||
#define TESTS_EXPORT_SVGS
|
// #define TESTS_EXPORT_SVGS
|
||||||
|
|
||||||
SCENARIO("Constant offset", "[ClipperUtils]") {
|
SCENARIO("Constant offset", "[ClipperUtils]") {
|
||||||
coord_t s = 1000000;
|
coord_t s = 1000000;
|
||||||
|
|
|
@ -25,7 +25,7 @@ Slic3r::Points collinear_circle({
|
||||||
Slic3r::Point::new_scale(-5, 0)
|
Slic3r::Point::new_scale(-5, 0)
|
||||||
});
|
});
|
||||||
|
|
||||||
SCENARIO("Remove collinear points from Polygon") {
|
SCENARIO("Remove collinear points from Polygon", "[Polygon]") {
|
||||||
GIVEN("Polygon with collinear points"){
|
GIVEN("Polygon with collinear points"){
|
||||||
Slic3r::Polygon p(collinear_circle);
|
Slic3r::Polygon p(collinear_circle);
|
||||||
WHEN("collinear points are removed") {
|
WHEN("collinear points are removed") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue