mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 05:42:00 +08:00
Testing 3mf reading file with umlauts in it's path
This commit is contained in:
parent
e6c759056e
commit
8dc4e64160
@ -154,6 +154,7 @@ set(SLIC3R_INCLUDES
|
||||
)
|
||||
set(LIBSLIC3R_INCLUDES
|
||||
${LIBDIR}/libslic3r
|
||||
${LIBDIR}/libslic3r/IO
|
||||
)
|
||||
|
||||
|
||||
@ -313,6 +314,7 @@ set(SLIC3R_TEST_SOURCES
|
||||
${TESTDIR}/libslic3r/test_skirt_brim.cpp
|
||||
${TESTDIR}/libslic3r/test_test_data.cpp
|
||||
${TESTDIR}/libslic3r/test_trianglemesh.cpp
|
||||
${TESTDIR}/libslic3r/test_3mf.cpp
|
||||
)
|
||||
|
||||
|
||||
|
BIN
src/test/inputs/test_3mf/Geräte/box.3mf
Executable file
BIN
src/test/inputs/test_3mf/Geräte/box.3mf
Executable file
Binary file not shown.
20
src/test/libslic3r/test_3mf.cpp
Normal file
20
src/test/libslic3r/test_3mf.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include <catch.hpp>
|
||||
#include <test_options.hpp>
|
||||
#include <string>
|
||||
#include "Model.hpp"
|
||||
#include "TMF.hpp"
|
||||
|
||||
|
||||
using namespace Slic3r;
|
||||
|
||||
SCENARIO("Reading 3mf file") {
|
||||
GIVEN("umlauts in the path of the file") {
|
||||
auto model {new Slic3r::Model()};
|
||||
WHEN("3mf model is read") {
|
||||
auto ret = Slic3r::IO::TMF::read(std::string(testfile_dir) +"test_3mf/Geräte/box.3mf",model);
|
||||
THEN("read should not return 0") {
|
||||
REQUIRE(ret == 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
xs/t/models/Geräte/box.3mf
Executable file
BIN
xs/t/models/Geräte/box.3mf
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user