STYLE: split off Test-string2

This commit is contained in:
Mark Olesen
2019-10-04 17:52:08 +02:00
committed by Andrew Heather
parent bd35981feb
commit d9d29e5a8f
8 changed files with 193 additions and 31 deletions

View File

@ -1,2 +1,2 @@
/* EXE_INC = -I$(LIB_SRC)/finiteVolume/lnInclude */
/* EXE_LIBS = -lfiniteVolume */
/* EXE_INC = */
/* EXE_LIBS = */

View File

@ -172,35 +172,6 @@ int main(int argc, char *argv[])
Info<<"trimRight: " << stringOps::trimRight(test) << endl;
Info<<"trim: " << stringOps::trim(test) << endl;
// Test comment stripping
{
Info<< nl << "Test comment stripping" << nl;
testCommentStripping
(
"/String without comments/"
);
testCommentStripping
(
"Removed some/* C-comments */ / C comments"
);
testCommentStripping
(
"Removed some//C++ comments\n / C++ comments"
);
testCommentStripping
(
"Partly degenerate C comment </*/ C-comment..."
);
testCommentStripping
(
"Truncated C comment </* C-comment..."
);
testCommentStripping
(
"Truncated C++ comment <// C++ comment..."
);
}
if (false)
{
Info<<"test move construct - string size:" << test.size() << nl;