KiCad PCB EDA Suite
test_sch_symbol.cpp File Reference

Test suite for SCH_SYMBOL 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 transform changes. More...
 

Detailed Description

Test suite for SCH_SYMBOL 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 transform changes.

Definition at line 65 of file test_sch_symbol.cpp.

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

References SYM_ORIENT_180, SYM_ORIENT_270, and SYM_ORIENT_90.