mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fixed unit test (sla_print_tests - random number generator seeding)
This commit is contained in:
@@ -127,6 +127,7 @@ TEST_CASE("Support point generator should be deterministic if seeded",
|
|||||||
|
|
||||||
for (int i = 0; i < 20; ++i) {
|
for (int i = 0; i < 20; ++i) {
|
||||||
point_gen.output().clear();
|
point_gen.output().clear();
|
||||||
|
point_gen.seed(0);
|
||||||
point_gen.execute(slices, slicegrid);
|
point_gen.execute(slices, slicegrid);
|
||||||
REQUIRE(point_gen.output().size() == ptnum);
|
REQUIRE(point_gen.output().size() == ptnum);
|
||||||
REQUIRE(checksum == get_chksum(point_gen.output()));
|
REQUIRE(checksum == get_chksum(point_gen.output()));
|
||||||
|
|||||||
Reference in New Issue
Block a user