|
KiCad PCB EDA Suite
|
Regression coverage for https://gitlab.com/kicad/code/kicad/-/issues/14447. More...
#include <boost/test/unit_test.hpp>#include <qa_utils/wx_utils/unit_test_utils.h>#include <memory>#include <sch_io/cadstar/cadstar_sch_archive_parser.h>Go to the source code of this file.
Classes | |
| struct | ARC_CONNECTION_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (ParseConnectionWithArc) | |
Regression coverage for https://gitlab.com/kicad/code/kicad/-/issues/14447.
A CADSTAR schematic CONN PATH may contain ACWARC/CWARC arc vertices. The importer parsed the path with ParseAllChildPoints, which only accepts PT nodes and aborted import with "Unknown node 'ACWARC' in 'PATH'". The connection path is now parsed as vertices so curved connections survive the import. The CONN/PATH fragment exercised here is taken verbatim from the file attached to the issue.
Definition in file test_issue14447_arc_connection.cpp.
| BOOST_AUTO_TEST_CASE | ( | ParseConnectionWithArc | ) |
Definition at line 52 of file test_issue14447_arc_connection.cpp.
References CADSTAR_ARCHIVE_PARSER::ANTICLOCKWISE_ARC, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CADSTAR_ARCHIVE_PARSER::VERTEX::Center, CADSTAR_ARCHIVE_PARSER::VERTEX::End, XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::VERTEX::Type, VECTOR2< T >::x, and VECTOR2< T >::y.