Gromacs  2026.0-dev-20241121-c76fa1e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions | Variables
gmx::test::anonymous_namespace{stringutil.cpp} Namespace Reference

Typedefs

typedef gmx::test::StringTestBase TextLineWrapperTest
 Test fixture for gmx::TextLineWrapper.
 

Functions

void checkEqualCaseInsensitive (const std::string &foo, const std::string &bar, int length, bool expectedResult)
 Helper to test that string comparison works with switched input positions. More...
 

Variables

const char g_wrapText [] = "A quick brown fox jumps over the lazy dog"
 Simple test string for wrapping.
 
const char g_wrapText2 [] = "A quick brown fox jumps\nover the lazy dog"
 Test string for wrapping with embedded line breaks.
 
const char g_wrapText3 [] = "A quick brown fox jumps\n\nover the lazy dog"
 Test string for wrapping with embedded line breaks and an empty line.
 
const char g_wrapTextLongWord []
 Test string for wrapping with a long word. More...
 
const char g_wrapTextWhitespace [] = " A quick brown fox jumps \n over the lazy dog"
 Test string for wrapping with extra whitespace.
 

Function Documentation

void gmx::test::anonymous_namespace{stringutil.cpp}::checkEqualCaseInsensitive ( const std::string &  foo,
const std::string &  bar,
int  length,
bool  expectedResult 
)

Helper to test that string comparison works with switched input positions.

Parameters
[in]fooFirst string to check.
[in]barSecond string to check.
[in]lengthMax comparison length to use.
[in]expectedResultIf we expect the result be a match between the strings or not.

Variable Documentation

const char gmx::test::anonymous_namespace{stringutil.cpp}::g_wrapTextLongWord[]
Initial value:
=
"A quick brown fox jumps awordthatoverflowsaline over the lazy dog"

Test string for wrapping with a long word.