Testing 3mf reading file with umlauts in it's path

This commit is contained in:
3bhady 2019-04-03 05:02:36 +02:00 committed by Joseph Lenox
parent e6c759056e
commit 8dc4e64160
4 changed files with 22 additions and 0 deletions

View File

@ -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
)

Binary file not shown.

View 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

Binary file not shown.