Remove unneeded check from fill bed test

This commit is contained in:
tamasmeszaros 2023-07-24 10:54:22 +02:00
parent e90f9e7088
commit 2730d2e14f
2 changed files with 7 additions and 5 deletions

View File

@ -18,7 +18,7 @@ namespace Slic3r { namespace arr2 {
// 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
// arbitrary parameters from any arranged object down to the arrangement core.
// arbitrary parameters from any arrangeable object down to the arrangement core.
class AnyWritable
{
public:

View File

@ -659,10 +659,12 @@ TEMPLATE_TEST_CASE("Bed needs to be completely filled with 1cm cubes",
REQUIRE(task->unselected.empty());
REQUIRE(result->to_add.size() + result->arranged_items.size() == arr2::model_instance_count(m));
REQUIRE(
std::all_of(task->selected.begin(), task->selected.end(), [](auto &itm) {
return arr2::get_bed_index(itm) == 0;
}));
// All the existing items should be on the physical bed
REQUIRE(std::all_of(result->arranged_items.begin(),
result->arranged_items.end(), [](auto &itm) {
return arr2::get_bed_index(itm) == 0;
}));
REQUIRE(
std::all_of(result->to_add.begin(), result->to_add.end(), [](auto &itm) {
return arr2::get_bed_index(itm) == 0;