|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <wx/debug.h>#include <base_units.h>#include <eda_units.h>#include <qa_utils/wx_utils/wx_assert.h>#include <widgets/unit_binder.h>Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_NO_MAIN |
Functions | |
| BOOST_AUTO_TEST_CASE (RangeBoundDistance) | |
| BOOST_AUTO_TEST_CASE (RangeBoundArea) | |
| BOOST_AUTO_TEST_CASE (RangeBoundVolume) | |
| BOOST_AUTO_TEST_CASE (RangeBoundUnitless) | |
| #define BOOST_TEST_NO_MAIN |
Definition at line 20 of file test_unit_binder.cpp.
| BOOST_AUTO_TEST_CASE | ( | RangeBoundArea | ) |
Definition at line 47 of file test_unit_binder.cpp.
References AREA, BOOST_CHECK_EQUAL(), UNIT_BINDER::ConvertRangeBound(), UNIT_BINDER::RANGE_BOUND::displayText, UNIT_BINDER::RANGE_BOUND::internalUnits, MM, PCB_IU_PER_MM, and pcbIUScale.
| BOOST_AUTO_TEST_CASE | ( | RangeBoundDistance | ) |
Definition at line 35 of file test_unit_binder.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), UNIT_BINDER::ConvertRangeBound(), UNIT_BINDER::RANGE_BOUND::displayText, DISTANCE, UNIT_BINDER::RANGE_BOUND::internalUnits, MM, PCB_IU_PER_MM, and pcbIUScale.
| BOOST_AUTO_TEST_CASE | ( | RangeBoundUnitless | ) |
Definition at line 73 of file test_unit_binder.cpp.
References BOOST_CHECK_EQUAL(), UNIT_BINDER::ConvertRangeBound(), pcbIUScale, UNITLESS, UNSCALED, and KI_TEST::wxAssertThrower().
| BOOST_AUTO_TEST_CASE | ( | RangeBoundVolume | ) |
Definition at line 58 of file test_unit_binder.cpp.
References BOOST_CHECK_EQUAL(), UNIT_BINDER::ConvertRangeBound(), UNIT_BINDER::RANGE_BOUND::displayText, UNIT_BINDER::RANGE_BOUND::internalUnits, MM, PCB_IU_PER_MM, pcbIUScale, and VOLUME.