KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_unique_group_name.cpp File Reference

Tests for UniqueGroupName, used when placing and pasting named groups. More...

#include <boost/test/unit_test.hpp>
#include <sch_screen.h>
#include <sch_group.h>
#include <tools/sch_tool_utils.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (NullScreenReturnsBase)
 
 BOOST_AUTO_TEST_CASE (FreeNameIsKept)
 
 BOOST_AUTO_TEST_CASE (CollisionGetsSuffix)
 
 BOOST_AUTO_TEST_CASE (SuffixSkipsTakenNumbers)
 

Detailed Description

Tests for UniqueGroupName, used when placing and pasting named groups.

Definition in file test_unique_group_name.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( CollisionGetsSuffix )

Definition at line 63 of file test_unique_group_name.cpp.

References BOOST_CHECK_EQUAL(), and UniqueGroupName().

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( FreeNameIsKept )

Definition at line 54 of file test_unique_group_name.cpp.

References BOOST_CHECK_EQUAL(), and UniqueGroupName().

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( NullScreenReturnsBase )

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( SuffixSkipsTakenNumbers )

Definition at line 72 of file test_unique_group_name.cpp.

References BOOST_CHECK_EQUAL(), and UniqueGroupName().