Libnest2D test fix
This commit is contained in:
parent
b4666e8174
commit
f3591d2a85
1 changed files with 6 additions and 5 deletions
|
@ -424,9 +424,10 @@ R"raw(<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|||
TEST(GeometryAlgorithms, BottomLeftStressTest) {
|
||||
using namespace libnest2d;
|
||||
|
||||
const Coord SCALE = 1000000;
|
||||
auto& input = prusaParts();
|
||||
|
||||
Box bin(210, 250);
|
||||
Box bin(210*SCALE, 250*SCALE);
|
||||
BottomLeftPlacer placer(bin);
|
||||
|
||||
auto it = input.begin();
|
||||
|
@ -448,12 +449,12 @@ TEST(GeometryAlgorithms, BottomLeftStressTest) {
|
|||
std::cout << "error index: " << i << std::endl;
|
||||
exportSVG(result, bin, i);
|
||||
}
|
||||
// ASSERT_TRUE(valid);
|
||||
ASSERT_TRUE(valid);
|
||||
} else {
|
||||
std::cout << "something went terribly wrong!" << std::endl;
|
||||
FAIL();
|
||||
}
|
||||
|
||||
|
||||
placer.clearItems();
|
||||
it++;
|
||||
i++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue