mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
libnest2d test rewritten for catch2. Fine tuned catch2 integration.
This commit is contained in:
5
tests/libnest2d/CMakeLists.txt
Normal file
5
tests/libnest2d/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
|
||||
add_executable(${_TEST_NAME}_tests ${_TEST_NAME}_tests_main.cpp printer_parts.cpp printer_parts.hpp)
|
||||
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r ${Boost_LIBRARIES} ${TBB_LIBRARIES} ${Boost_LIBRARIES})
|
||||
|
||||
catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
|
||||
1055
tests/libnest2d/libnest2d_tests_main.cpp
Normal file
1055
tests/libnest2d/libnest2d_tests_main.cpp
Normal file
File diff suppressed because it is too large
Load Diff
3175
tests/libnest2d/printer_parts.cpp
Normal file
3175
tests/libnest2d/printer_parts.cpp
Normal file
File diff suppressed because it is too large
Load Diff
14
tests/libnest2d/printer_parts.hpp
Normal file
14
tests/libnest2d/printer_parts.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef PRINTER_PARTS_H
|
||||
#define PRINTER_PARTS_H
|
||||
|
||||
#include <vector>
|
||||
#include <libnest2d/backends/clipper/clipper_polygon.hpp>
|
||||
|
||||
using TestData = std::vector<ClipperLib::Path>;
|
||||
using TestDataEx = std::vector<ClipperLib::Polygon>;
|
||||
|
||||
extern const TestData PRINTER_PART_POLYGONS;
|
||||
extern const TestData STEGOSAUR_POLYGONS;
|
||||
extern const TestDataEx PRINTER_PART_POLYGONS_EX;
|
||||
|
||||
#endif // PRINTER_PARTS_H
|
||||
Reference in New Issue
Block a user