Welcome to mirror list, hosted at ThFree Co, Russian Federation.

libslic3r_tests.cpp « libslic3r « tests - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 907304f57a10ed68db3e000731e167149c12faf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>

#include "libslic3r/libslic3r.h"

namespace {

TEST_CASE("sort_remove_duplicates", "[utils]") {
	std::vector<int> data_src = { 3, 0, 2, 1, 15, 3, 5, 6, 3, 1, 0 };
	std::vector<int> data_dst = { 0, 1, 2, 3, 5, 6, 15 };
	Slic3r::sort_remove_duplicates(data_src);
    REQUIRE(data_src == data_dst);
}

}