KiCad PCB EDA Suite
test_sch_biu.cpp File Reference

Test suite for schematic base internal units (1 = 100nm). More...

Go to the source code of this file.

Classes

class  TEST_SCH_INTERNAL_UNITS
 

Functions

 BOOST_AUTO_TEST_CASE (ConvertToInternalUnits)
 Declare the test suite. More...
 
 BOOST_AUTO_TEST_CASE (ConvertFromInternalUnits)
 

Detailed Description

Test suite for schematic base internal units (1 = 100nm).

Definition in file test_sch_biu.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( ConvertToInternalUnits  )

Declare the test suite.

Definition at line 50 of file test_sch_biu.cpp.

51 {
52  BOOST_CHECK_EQUAL( Millimeter2iu( 1.0 ), 10000 );
53 }
static constexpr int Millimeter2iu(double mm)

References Millimeter2iu().

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( ConvertFromInternalUnits  )

Definition at line 56 of file test_sch_biu.cpp.

57 {
58  BOOST_CHECK_EQUAL( static_cast< int >( Iu2Millimeter( 10000 ) ), 1 );
59 }