|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <geometry/shape_poly_set.h>#include <geometry/shape_line_chain.h>#include <geometry/poly_ystripes_index.h>#include <cstdlib>#include <random>#include <vector>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (CorrectnessAllStrategiesAgree) | |
| BOOST_AUTO_TEST_CASE (CorrectnessEdgeCases) | |
| BOOST_AUTO_TEST_CASE (CorrectnessPolygonWithHoles) | |
| BOOST_AUTO_TEST_CASE | ( | CorrectnessAllStrategiesAgree | ) |
Definition at line 69 of file test_poly_ystripes_index.cpp.
References std::abs(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), POLY_YSTRIPES_INDEX::Build(), POLY_YSTRIPES_INDEX::Contains(), expected, SIZE, and square().
| BOOST_AUTO_TEST_CASE | ( | CorrectnessEdgeCases | ) |
Definition at line 116 of file test_poly_ystripes_index.cpp.
References BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), POLY_YSTRIPES_INDEX::Build(), POLY_YSTRIPES_INDEX::Contains(), and square().
| BOOST_AUTO_TEST_CASE | ( | CorrectnessPolygonWithHoles | ) |
Definition at line 153 of file test_poly_ystripes_index.cpp.
References SHAPE_POLY_SET::AddHole(), SHAPE_POLY_SET::AddOutline(), SHAPE_LINE_CHAIN::Append(), SHAPE_POLY_SET::BBox(), BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), POLY_YSTRIPES_INDEX::Build(), POLY_YSTRIPES_INDEX::Contains(), SHAPE_POLY_SET::Contains(), expected, and SHAPE_LINE_CHAIN::SetClosed().