KiCad PCB EDA Suite
test_pad_numbering.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <board.h>
#include <footprint.h>
#include <pad.h>

Go to the source code of this file.

Classes

struct  PAD_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (CanNumber)
 Check what gets names and what doesn't. More...
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( CanNumber  )

Check what gets names and what doesn't.

Definition at line 77 of file test_pad_numbering.cpp.

78{
79 auto npth = MakeNPTH();
80 BOOST_CHECK_EQUAL( false, npth.CanHaveNumber() );
81
82 auto aperture = MakeAperture();
83 BOOST_CHECK_EQUAL( false, aperture.CanHaveNumber() );
84
85 auto smd = MakeSmd();
86 BOOST_CHECK_EQUAL( true, smd.CanHaveNumber() );
87}