mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 22:22:00 +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
|
||||
// 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:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user