Gromacs
2026.0-dev-20241121-c76fa1e
|
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. | |
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.
[in] | foo | First string to check. |
[in] | bar | Second string to check. |
[in] | length | Max comparison length to use. |
[in] | expectedResult | If we expect the result be a match between the strings or not. |
const char gmx::test::anonymous_namespace{stringutil.cpp}::g_wrapTextLongWord[] |
Test string for wrapping with a long word.