mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 02:57:39 +00:00
Update unit test
This commit is contained in:
@@ -145,7 +145,9 @@ enum class SaveStrategy
|
|||||||
SkipAuxiliary = 1 << 9,
|
SkipAuxiliary = 1 << 9,
|
||||||
UseLoadedId = 1 << 10,
|
UseLoadedId = 1 << 10,
|
||||||
ShareMesh = 1 << 11,
|
ShareMesh = 1 << 11,
|
||||||
MinimalPublished = 1 << 12,
|
// Keep this separate from SplitModel, which uses the 0x1000 bit as part of its
|
||||||
|
// production-extension value.
|
||||||
|
MinimalPublished = 1 << 13,
|
||||||
|
|
||||||
SplitModel = 0x1000 | ProductionExt,
|
SplitModel = 0x1000 | ProductionExt,
|
||||||
Encrypted = SecureContentExt | SplitModel,
|
Encrypted = SecureContentExt | SplitModel,
|
||||||
|
|||||||
@@ -730,6 +730,8 @@ SCENARIO("Minimal published 3MF serialization filters config and omits embedded
|
|||||||
REQUIRE(store_bbs_3mf(store_params));
|
REQUIRE(store_bbs_3mf(store_params));
|
||||||
|
|
||||||
Model dst_model;
|
Model dst_model;
|
||||||
|
ScopedTemporaryDir loaded_backup_dir("orca_min_pub_loaded");
|
||||||
|
dst_model.set_backup_path(loaded_backup_dir.string());
|
||||||
DynamicPrintConfig dst_config;
|
DynamicPrintConfig dst_config;
|
||||||
ConfigSubstitutionContext ctxt{ ForwardCompatibilitySubstitutionRule::Enable };
|
ConfigSubstitutionContext ctxt{ ForwardCompatibilitySubstitutionRule::Enable };
|
||||||
PlateDataPtrs dst_plates;
|
PlateDataPtrs dst_plates;
|
||||||
@@ -743,11 +745,10 @@ SCENARIO("Minimal published 3MF serialization filters config and omits embedded
|
|||||||
REQUIRE(loaded);
|
REQUIRE(loaded);
|
||||||
REQUIRE(loaded_presets.empty());
|
REQUIRE(loaded_presets.empty());
|
||||||
REQUIRE(dst_config.option("layer_height") != nullptr);
|
REQUIRE(dst_config.option("layer_height") != nullptr);
|
||||||
REQUIRE(dst_config.opt_float("layer_height") == 0.24);
|
REQUIRE_THAT(dst_config.opt_float("layer_height"), Catch::Matchers::WithinAbs(0.24, 1e-6));
|
||||||
REQUIRE(dst_config.option("sparse_infill_density") == nullptr);
|
REQUIRE(dst_config.option("sparse_infill_density") == nullptr);
|
||||||
}
|
}
|
||||||
release_PlateData_list(dst_plates);
|
release_PlateData_list(dst_plates);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user