KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_increment.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <increment.h>
#include <limits>

Go to the source code of this file.

Classes

struct  INCREMENT_TEST_CASE
 Declares a struct as the Boost test fixture. More...
 
struct  ALPHABETIC_TEST_CASE
 

Functions

 BOOST_AUTO_TEST_CASE (BasicCase)
 Check formatting the point.
 
incrementer SetSkipIOSQXZ (true)
 
 for (const auto &c :cases)
 
 BOOST_AUTO_TEST_CASE (AlphabeticIndexes)
 

Variables

STRING_INCREMENTER incrementer
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( AlphabeticIndexes )

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( BasicCase )

Check formatting the point.

Definition at line 45 of file test_increment.cpp.

References BOOST_CHECK_EQUAL(), BOOST_TEST_INFO(), incrementer, and result.

◆ for()

for ( const auto &c :cases )

Definition at line 119 of file test_increment.cpp.

References BOOST_CHECK_EQUAL(), BOOST_TEST_INFO(), incrementer, and result.

◆ SetSkipIOSQXZ()

incrementer SetSkipIOSQXZ ( true )

References incrementer.

Variable Documentation

◆ incrementer

STRING_INCREMENTER incrementer
Initial value:
{
const std::vector<INCREMENT_TEST_CASE> cases{
{ wxString( L"1あ" ), 1, 0, wxString( L"2あ" ) },
{ wxString( L"あ1" ), 1, 0, wxString( L"あ2" ) },
{ wxString( L"あ1" ), 1, 1, "nullopt" },
{ wxString( L"1" ), 1, 0, "nullopt" },
{ wxString( L"A-1" ), 1, 0, wxString( L"B-1" ) },
}

Definition at line 116 of file test_increment.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), for(), EDIT_TOOL::Increment(), SCH_TOOL_BASE< T >::Increment(), DS_DATA_ITEM_TEXT::IncrementLabel(), and SetSkipIOSQXZ().