mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 12:41:18 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <catch2/catch.hpp>
 | 
						|
 | 
						|
#include "libslic3r/Model.hpp"
 | 
						|
#include "libslic3r/Format/3mf.hpp"
 | 
						|
 | 
						|
using namespace Slic3r;
 | 
						|
 | 
						|
SCENARIO("Reading 3mf file", "[3mf]") {
 | 
						|
    GIVEN("umlauts in the path of the file") {
 | 
						|
        Slic3r::Model model;
 | 
						|
        WHEN("3mf model is read") {
 | 
						|
        	std::string path = std::string(TEST_DATA_DIR) + "/test_3mf/Geräte/Büchse.3mf";
 | 
						|
        	DynamicPrintConfig config;
 | 
						|
            bool ret = Slic3r::load_3mf(path.c_str(), &config, &model, false);
 | 
						|
            THEN("load should succeed") {
 | 
						|
                REQUIRE(ret);
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |