COMP: fixup test applications

This commit is contained in:
Mark Olesen
2022-11-30 11:36:40 +00:00
parent f9191b9377
commit 8d4e32da22
12 changed files with 59 additions and 60 deletions

View File

@ -67,11 +67,11 @@ int main(int argc, char *argv[])
for (int i = 0; i<10; i++)
{
myList.append(1.3*i);
myList.push_back(1.3*i);
}
myList.append(100.3);
myList.append(500.3);
myList.push_back(100.3);
myList.push_back(500.3);
Info<< "DLList<scalar>" << nl;
Info<< nl << "flat-output: " << flatOutput(myList) << nl;
@ -144,9 +144,9 @@ int main(int argc, char *argv[])
Info<< " => " << flatOutput(myList) << nl;
}
myList.append(500.3);
myList.append(200.3);
myList.append(100.3);
myList.push_back(500.3);
myList.push_back(200.3);
myList.push_back(100.3);
Info<< nl << "Testing swapUp and swapDown:" << nl;
Info<< " => " << flatOutput(myList) << nl;
@ -200,7 +200,7 @@ int main(int argc, char *argv[])
for (int i = 0; i<5; i++)
{
labList.append(identity(6));
labList.push_back(identity(6));
}
Info<< nl
@ -221,16 +221,16 @@ int main(int argc, char *argv[])
List<label> content1 = identity(10);
Info<< nl
<< " move append ";
<< " move push_back ";
printAddress(content1);
labList.append(std::move(content1));
labList.push_back(std::move(content1));
Info<< " content " << flatOutput(content1) << nl
<< " list" << labList << nl;
printAddresses(labList);
// labList.append(content1);
// labList.push_back(content1);
}
Info<< nl << "Done." << endl;