KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_excellon_repeat.cpp File Reference
#include <cstdlib>
#include <boost/test/unit_test.hpp>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <gerber_file_image.h>
#include <excellon_image.h>
#include <excellon_defaults.h>
#include <gerber_draw_item.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (RepeatHoleCommand)
 Regression test for the Excellon repeat hole command R#(X#Y#).
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( RepeatHoleCommand )

Regression test for the Excellon repeat hole command R#(X#Y#).

The command repeats the previous hole a number of times, adding an incremental X and/or Y step each time. It was not implemented, so every R line was rejected with "Unexpected symbol 0x52 <R>" and its holes dropped.

Definition at line 43 of file test_excellon_repeat.cpp.

References std::abs(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetTestDataRootDir(), image, path, VECTOR2< T >::x, and VECTOR2< T >::y.