KiCad PCB EDA Suite
test_sch_symbol.cpp File Reference

Test suite for SCH_COMPONENT object. More...

Go to the source code of this file.

Classes

class  TEST_SCH_SYMBOL_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (DefaultProperties)
 Declare the test suite. More...
 
 BOOST_AUTO_TEST_CASE (Orientation)
 Test the orientation tranform changes. More...
 

Detailed Description

Test suite for SCH_COMPONENT object.

Definition in file test_sch_symbol.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( DefaultProperties  )

Declare the test suite.

Check that we can get the default properties as expected.

Definition at line 57 of file test_sch_symbol.cpp.

58 {
59 }

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( Orientation  )

Test the orientation tranform changes.

Definition at line 65 of file test_sch_symbol.cpp.

66 {
67  TRANSFORM t = m_symbol.GetTransform();
68 
69  m_symbol.SetOrientation( CMP_ORIENT_90 );
70  t = m_symbol.GetTransform();
71  m_symbol.SetTransform( TRANSFORM() );
72  m_symbol.SetOrientation( CMP_ORIENT_180 );
73  t = m_symbol.GetTransform();
74  m_symbol.SetTransform( TRANSFORM() );
75  m_symbol.SetOrientation( CMP_ORIENT_270 );
76  t = m_symbol.GetTransform();
77 }
for transforming drawing coordinates for a wxDC device context.
Definition: transform.h:45

References CMP_ORIENT_180, CMP_ORIENT_270, and CMP_ORIENT_90.