KiCad PCB EDA Suite
|
Go to the source code of this file.
Functions | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(0, 0))==VECTOR2D(1, 2)) | |
Test suite for KiCad math code. More... | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(2, 0))==VECTOR2D(2, 2)) | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(6, 0))==VECTOR2D(4, 2)) | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(6, 5))==VECTOR2D(4, 5)) | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(6, 7))==VECTOR2D(4, 6)) | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(3, 7))==VECTOR2D(3, 6)) | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(0, 7))==VECTOR2D(1, 6)) | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(0, 3))==VECTOR2D(1, 3)) | |
BOOST_CHECK (box.ClosestPointTo(VECTOR2D(2, 4))==VECTOR2D(2, 4)) | |
BOOST_CHECK (box.FarthestPointTo(VECTOR2D(2, 3))==VECTOR2D(4, 6)) | |
BOOST_CHECK (box.FarthestPointTo(VECTOR2D(3, 3))==VECTOR2D(1, 6)) | |
BOOST_CHECK (box.FarthestPointTo(VECTOR2D(3, 5))==VECTOR2D(1, 2)) | |
BOOST_CHECK (box.FarthestPointTo(VECTOR2D(2, 5))==VECTOR2D(4, 2)) | |
BOOST_CHECK (box.IntersectsCircle(VECTOR2D(4, 6), 5)==true) | |
BOOST_CHECK (box.IntersectsCircle(VECTOR2D(4, 6), 6)==true) | |
BOOST_CHECK (box.IntersectsCircle(VECTOR2D(4, 6), 2)==true) | |
BOOST_CHECK (box.IntersectsCircle(VECTOR2D(14, 6), 5)==false) | |
BOOST_CHECK (box.IntersectsCircleEdge(VECTOR2D(4, 6), 5, 1)==true) | |
BOOST_CHECK (box.IntersectsCircleEdge(VECTOR2D(4, 6), 6, 1)==false) | |
BOOST_CHECK (box.IntersectsCircleEdge(VECTOR2D(4, 6), 2, 1)==true) | |
BOOST_CHECK (box.IntersectsCircleEdge(VECTOR2D(14, 6), 5, 1)==false) | |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(0, 0) = =VECTOR2D(1, 2) | ) |
Test suite for KiCad math code.
Declare the test suite
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists(), TEST_SIM_LIBRARY_SPICE_FIXTURE::CompareToUsualDiodeModel(), TestConcaveSquareFillet(), testGroupEqual(), testGroupsEqual(), TestSquareFillet(), and TEST_SIM_LIBRARY_SPICE_FIXTURE::TestTransistor().
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(0, 3) = =VECTOR2D(1, 3) | ) |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(0, 7) = =VECTOR2D(1, 6) | ) |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(2, 0) = =VECTOR2D(2, 2) | ) |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(2, 4) = =VECTOR2D(2, 4) | ) |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(3, 7) = =VECTOR2D(3, 6) | ) |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(6, 0) = =VECTOR2D(4, 2) | ) |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(6, 5) = =VECTOR2D(4, 5) | ) |
BOOST_CHECK | ( | box. | ClosestPointToVECTOR2D(6, 7) = =VECTOR2D(4, 6) | ) |
BOOST_CHECK | ( | box. | FarthestPointToVECTOR2D(2, 3) = =VECTOR2D(4, 6) | ) |
BOOST_CHECK | ( | box. | FarthestPointToVECTOR2D(2, 5) = =VECTOR2D(4, 2) | ) |
BOOST_CHECK | ( | box. | FarthestPointToVECTOR2D(3, 3) = =VECTOR2D(1, 6) | ) |
BOOST_CHECK | ( | box. | FarthestPointToVECTOR2D(3, 5) = =VECTOR2D(1, 2) | ) |
BOOST_CHECK | ( | box. | IntersectsCircleVECTOR2D(14, 6), 5 = =false | ) |
BOOST_CHECK | ( | box. | IntersectsCircleVECTOR2D(4, 6), 2 = =true | ) |
BOOST_CHECK | ( | box. | IntersectsCircleVECTOR2D(4, 6), 5 = =true | ) |
BOOST_CHECK | ( | box. | IntersectsCircleVECTOR2D(4, 6), 6 = =true | ) |
BOOST_CHECK | ( | box. | IntersectsCircleEdgeVECTOR2D(14, 6), 5, 1 = =false | ) |
BOOST_CHECK | ( | box. | IntersectsCircleEdgeVECTOR2D(4, 6), 2, 1 = =true | ) |
BOOST_CHECK | ( | box. | IntersectsCircleEdgeVECTOR2D(4, 6), 5, 1 = =true | ) |
BOOST_CHECK | ( | box. | IntersectsCircleEdgeVECTOR2D(4, 6), 6, 1 = =false | ) |