From 5a60f5f6a8645e65e65cfb67ca6f1243ada6cad9 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Wed, 19 Apr 2023 08:43:01 +0200 Subject: [PATCH] Fix for test --- tests/libslic3r/test_emboss.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/libslic3r/test_emboss.cpp b/tests/libslic3r/test_emboss.cpp index 7fff433bff..29d42ed484 100644 --- a/tests/libslic3r/test_emboss.cpp +++ b/tests/libslic3r/test_emboss.cpp @@ -499,15 +499,16 @@ TEST_CASE("UndoRedo TextConfiguration serialization", "[Emboss]") TextConfiguration tc; tc.text = "Dovede-li se člověk zasmát sám sobě, nevyjde ze smíchu po celý život."; EmbossStyle& es = tc.style; - es.name = "Seneca"; - es.path = "Simply the best"; - es.type = EmbossStyle::Type::file_path; - FontProp &fp = es.prop; - fp.angle = 100.; - fp.distance = 10.; - fp.char_gap = 1; - fp.use_surface = true; - tc.fix_3mf_tr = Transform3d::Identity(); + es.name = "Seneca"; + es.path = "Simply the best"; + es.type = EmbossStyle::Type::file_path; + FontProp &fp = es.prop; + fp.char_gap = 3; + fp.line_gap = 7; + fp.boldness = 2.3f; + fp.skew = 4.5f; + fp.collection_number = 13; + fp.size_in_mm= 6.7f; std::stringstream ss; // any stream can be used { @@ -522,7 +523,6 @@ TEST_CASE("UndoRedo TextConfiguration serialization", "[Emboss]") } CHECK(tc.style == tc_loaded.style); CHECK(tc.text == tc_loaded.text); - CHECK(tc.fix_3mf_tr.has_value() == tc_loaded.fix_3mf_tr.has_value()); } #include "libslic3r/EmbossShape.hpp"