mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 13:55:58 +08:00
Fix for test
This commit is contained in:
parent
ea84072f55
commit
5a60f5f6a8
@ -499,15 +499,16 @@ TEST_CASE("UndoRedo TextConfiguration serialization", "[Emboss]")
|
|||||||
TextConfiguration tc;
|
TextConfiguration tc;
|
||||||
tc.text = "Dovede-li se člověk zasmát sám sobě, nevyjde ze smíchu po celý život.";
|
tc.text = "Dovede-li se člověk zasmát sám sobě, nevyjde ze smíchu po celý život.";
|
||||||
EmbossStyle& es = tc.style;
|
EmbossStyle& es = tc.style;
|
||||||
es.name = "Seneca";
|
es.name = "Seneca";
|
||||||
es.path = "Simply the best";
|
es.path = "Simply the best";
|
||||||
es.type = EmbossStyle::Type::file_path;
|
es.type = EmbossStyle::Type::file_path;
|
||||||
FontProp &fp = es.prop;
|
FontProp &fp = es.prop;
|
||||||
fp.angle = 100.;
|
fp.char_gap = 3;
|
||||||
fp.distance = 10.;
|
fp.line_gap = 7;
|
||||||
fp.char_gap = 1;
|
fp.boldness = 2.3f;
|
||||||
fp.use_surface = true;
|
fp.skew = 4.5f;
|
||||||
tc.fix_3mf_tr = Transform3d::Identity();
|
fp.collection_number = 13;
|
||||||
|
fp.size_in_mm= 6.7f;
|
||||||
|
|
||||||
std::stringstream ss; // any stream can be used
|
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.style == tc_loaded.style);
|
||||||
CHECK(tc.text == tc_loaded.text);
|
CHECK(tc.text == tc_loaded.text);
|
||||||
CHECK(tc.fix_3mf_tr.has_value() == tc_loaded.fix_3mf_tr.has_value());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "libslic3r/EmbossShape.hpp"
|
#include "libslic3r/EmbossShape.hpp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user