MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / TEST

Function TEST

CPP/Tests/TestSimplifyPath.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <gtest/gtest.h>
3using namespace Clipper2Lib;
4TEST(Clipper2Tests, TestSimplifyPath) {
5 Path64 input1 = MakePath({
6 0,0, 1,1, 0,20, 0,21, 1,40, 0,41, 0,60, 0,61, 0,80, 1,81, 0,100
7 });
8 Path64 output1 = SimplifyPath(input1, 2, false);
9 EXPECT_EQ(Length(output1), 100);
10 EXPECT_EQ(output1.size(), 2);
11}

Callers

nothing calls this directly

Calls 3

MakePathFunction · 0.85
SimplifyPathFunction · 0.85
LengthFunction · 0.85

Tested by

no test coverage detected