1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

Fixed unit test (sla_print_tests - random number generator seeding)

This commit is contained in:
Lukas Matena
2020-01-16 14:03:43 +01:00
parent 43fefd1c43
commit 79e546816d
+1
View File
@@ -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()));