KiCad PCB EDA Suite
test_types.cpp File Reference

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (AllCorrect)
 Declare the test suite. More...
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( AllCorrect  )

Declare the test suite.

Definition at line 37 of file test_types.cpp.

38 {
39  for( int i = 0; i < MAX_STRUCT_TYPE_ID; i++ )
40  {
41  KICAD_T type = static_cast<KICAD_T>( i );
42 
43  BOOST_CHECK( IsTypeCorrect( type ) );
44  }
45 }
constexpr bool IsTypeCorrect(KICAD_T aType)
Definition: typeinfo.h:470
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition: typeinfo.h:77
BOOST_CHECK(v2.Cross(v1)==1)

References BOOST_CHECK(), IsTypeCorrect(), and MAX_STRUCT_TYPE_ID.