diff --git a/applications/test/fileName/Test-fileName.C b/applications/test/fileName/Test-fileName.C index 42b3fe4d7a..3ad28e5f77 100644 --- a/applications/test/fileName/Test-fileName.C +++ b/applications/test/fileName/Test-fileName.C @@ -617,6 +617,7 @@ int main(int argc, char *argv[]) fileName pathName(wrdList); Info<< "pathName = " << pathName << nl + << "nameOp = " << nameOp()(pathName) << nl << "pathName.name() = >" << pathName.name() << "<\n" << "pathName.path() = " << pathName.path() << nl << "pathName.ext() = >" << pathName.ext() << "<\n" diff --git a/applications/test/string/Test-string.C b/applications/test/string/Test-string.C index 2d6bdfac2e..81c126b8af 100644 --- a/applications/test/string/Test-string.C +++ b/applications/test/string/Test-string.C @@ -271,32 +271,31 @@ int main(int argc, char *argv[]) Info<< "hash: = " << word::printf("0x%012X", string::hash()(s2)) << endl; - // test formatting on int + // Test formatting on int { label val = 25; - Info<<"val: " << val << "\n"; - - Info<< "int " << val << " as word >" - << Foam::name(val) << "< or " - << word::printf("formatted >%08d<", val) << "\n"; + Info<< "int " << val << " nameOp='" + << nameOp