mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 20:50:38 +08:00
Remove unneeded check from fill bed test
This commit is contained in:
parent
e90f9e7088
commit
2730d2e14f
@ -18,7 +18,7 @@ namespace Slic3r { namespace arr2 {
|
|||||||
|
|
||||||
// An interface that allows to store arbitrary data (std::any) under a specific
|
// An interface that allows to store arbitrary data (std::any) under a specific
|
||||||
// key in an object implementing the interface. This is later used to pass
|
// key in an object implementing the interface. This is later used to pass
|
||||||
// arbitrary parameters from any arranged object down to the arrangement core.
|
// arbitrary parameters from any arrangeable object down to the arrangement core.
|
||||||
class AnyWritable
|
class AnyWritable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -659,10 +659,12 @@ TEMPLATE_TEST_CASE("Bed needs to be completely filled with 1cm cubes",
|
|||||||
REQUIRE(task->unselected.empty());
|
REQUIRE(task->unselected.empty());
|
||||||
REQUIRE(result->to_add.size() + result->arranged_items.size() == arr2::model_instance_count(m));
|
REQUIRE(result->to_add.size() + result->arranged_items.size() == arr2::model_instance_count(m));
|
||||||
|
|
||||||
REQUIRE(
|
// All the existing items should be on the physical bed
|
||||||
std::all_of(task->selected.begin(), task->selected.end(), [](auto &itm) {
|
REQUIRE(std::all_of(result->arranged_items.begin(),
|
||||||
return arr2::get_bed_index(itm) == 0;
|
result->arranged_items.end(), [](auto &itm) {
|
||||||
}));
|
return arr2::get_bed_index(itm) == 0;
|
||||||
|
}));
|
||||||
|
|
||||||
REQUIRE(
|
REQUIRE(
|
||||||
std::all_of(result->to_add.begin(), result->to_add.end(), [](auto &itm) {
|
std::all_of(result->to_add.begin(), result->to_add.end(), [](auto &itm) {
|
||||||
return arr2::get_bed_index(itm) == 0;
|
return arr2::get_bed_index(itm) == 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user