STYLE: fix/correct some tests. Remove useless tests

This commit is contained in:
Mark Olesen
2021-06-29 12:28:11 +02:00
parent 6a390f6ad1
commit 8884d58a52
27 changed files with 62 additions and 188 deletions

View File

@ -33,6 +33,8 @@ Description
#include "IOstreams.H"
#include "argList.H"
#include "ITstream.H"
#include "ListOps.H"
#include "flipOp.H"
using namespace Foam;
@ -109,7 +111,7 @@ void doTest
<< nl
<< "====" << nl << endl;
ITstream its(name, input);
ITstream its(input);
Info<< "got " << its.size() << " tokens - index at "
<< its.tokenIndex() << endl;
@ -164,7 +166,15 @@ int main(int argc, char *argv[])
string stringInput("( string ; input \"string\" to tokenize )");
List<char> listInput(stringInput.cbegin(), stringInput.cend());
List<char> listInput
(
ListOps::create<char>
(
stringInput.cbegin(),
stringInput.cend(),
Foam::noOp{}
)
);
doTest("empty", "", true, true);