...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The Unit Test Framework is flexible on how naming the test units (test cases/suites) and it is possible to use a wide variety of characters. However there are scenarios where the name of a test unit may collide with other and remote functionalities of the Unit Test Framework. For instance:
'@'
,
'+'
or '/'
(see this
section for more details)
To prevent any conflicting declaration, the Unit Test Framework
sanitizes the name given to a test unit
(case or suite), prior to adding the test to the test tree. Any conflicting
character is replaced by an underscore '_'
.
![]() |
Note |
---|---|
Spaces are not considered as special chars and are preserved, except for the leading and trailing spaces which are removed. |
![]() |
Note |
---|---|
The sanitization of the test unit names has been introduced in Boost 1.67. |