Skip to content

Commit 83c1c48

Browse files
jhlegarretadzenanz
authored andcommitted
STYLE: Improve printed message style across miscellaneous tests
Improve printed message style across miscellaneous tests: - Remove unnecessary characters. - Use sentence case. - Fix typos. - Make the printed messages be consistent and match the exercised methods where appropriate to improve their informative purpose.
1 parent f795943 commit 83c1c48

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

Modules/Core/Common/test/itkTimeProbeTest.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ itkTimeProbeTest(int, char *[])
8484

8585
/** Invoke GetRealTimeClock. */
8686
itk::RealTimeStamp timeStamp = localTimer.GetRealTimeClock()->GetRealTimeStamp();
87-
std::cout << "day " << timeStamp.GetTimeInDays() << std::endl;
88-
std::cout << "hour " << timeStamp.GetTimeInHours() << std::endl;
89-
std::cout << "min " << timeStamp.GetTimeInMinutes() << std::endl;
90-
std::cout << "sec " << timeStamp.GetTimeInSeconds() << std::endl;
91-
std::cout << "msec " << timeStamp.GetTimeInMilliSeconds() << std::endl;
92-
std::cout << "usec " << timeStamp.GetTimeInMicroSeconds() << std::endl;
87+
std::cout << "TimeInDays: " << timeStamp.GetTimeInDays() << std::endl;
88+
std::cout << "TimeInHours: " << timeStamp.GetTimeInHours() << std::endl;
89+
std::cout << "TimeInMinutes: " << timeStamp.GetTimeInMinutes() << std::endl;
90+
std::cout << "TimeInSeconds: " << timeStamp.GetTimeInSeconds() << std::endl;
91+
std::cout << "TimeInMilliSeconds: " << timeStamp.GetTimeInMilliSeconds() << std::endl;
92+
std::cout << "TimeInMicroSeconds: " << timeStamp.GetTimeInMicroSeconds() << std::endl;
9393

9494
// Exercise the Print method
9595
itk::Indent indent{};

Modules/Core/Common/test/itkTimeProbeTest2.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ itkTimeProbeTest2(int, char *[])
5959
std::cout << "InstantValue: " << localTimer.GetInstantValue() << std::endl;
6060
std::cout << "Minimum: " << localTimer.GetMinimum() << std::endl;
6161
std::cout << "Mean: " << localTimer.GetMean() << std::endl;
62-
std::cout << "Maximu: " << localTimer.GetMaximum() << std::endl;
63-
std::cout << "Standard deviation:" << localTimer.GetStandardDeviation() << std::endl;
62+
std::cout << "Maximum: " << localTimer.GetMaximum() << std::endl;
63+
std::cout << "StandardDeviation: " << localTimer.GetStandardDeviation() << std::endl;
6464

6565
unsigned int iteration(100);
6666

@@ -129,12 +129,12 @@ itkTimeProbeTest2(int, char *[])
129129
/** Invoke GetRealTimeClock. */
130130
itk::RealTimeStamp timeStamp = localTimer.GetRealTimeClock()->GetRealTimeStamp();
131131
std::cout << std::endl << "Check RealTimeStamp" << std::endl;
132-
std::cout << "day " << timeStamp.GetTimeInDays() << std::endl;
133-
std::cout << "hour " << timeStamp.GetTimeInHours() << std::endl;
134-
std::cout << "min " << timeStamp.GetTimeInMinutes() << std::endl;
135-
std::cout << "sec " << timeStamp.GetTimeInSeconds() << std::endl;
136-
std::cout << "msec " << timeStamp.GetTimeInMilliSeconds() << std::endl;
137-
std::cout << "usec " << timeStamp.GetTimeInMicroSeconds() << std::endl;
132+
std::cout << "TimeInDays: " << timeStamp.GetTimeInDays() << std::endl;
133+
std::cout << "TimeInHours: " << timeStamp.GetTimeInHours() << std::endl;
134+
std::cout << "TimeInMinutes: " << timeStamp.GetTimeInMinutes() << std::endl;
135+
std::cout << "TimeInSeconds: " << timeStamp.GetTimeInSeconds() << std::endl;
136+
std::cout << "TimeInMilliSeconds: " << timeStamp.GetTimeInMilliSeconds() << std::endl;
137+
std::cout << "TimeInMicroSeconds: " << timeStamp.GetTimeInMicroSeconds() << std::endl;
138138

139139

140140
std::cout << "Test finished." << std::endl;

Modules/Numerics/FEM/test/itkFEMSolverHyperbolicTest.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,22 +227,22 @@ itkFEMSolverHyperbolicTest(int argc, char * argv[])
227227
{
228228
case 0:
229229
// VNL
230-
std::cout << std::endl << ">>>>>Using LinearSystemWrapperVNL" << std::endl;
230+
std::cout << std::endl << "Using LinearSystemWrapperVNL" << std::endl;
231231
SH->SetLinearSystemWrapper(&lsw_vnl);
232232
break;
233233
case 1:
234234
// Dense VNL
235-
std::cout << std::endl << ">>>>>Using LinearSystemWrapperDenseVNL" << std::endl;
235+
std::cout << std::endl << "Using LinearSystemWrapperDenseVNL" << std::endl;
236236
SH->SetLinearSystemWrapper(&lsw_dvnl);
237237
break;
238238
case 2:
239239
// IT Pack
240-
std::cout << std::endl << ">>>>>Using LinearSystemWrapperItpack" << std::endl;
240+
std::cout << std::endl << "Using LinearSystemWrapperItpack" << std::endl;
241241
SH->SetLinearSystemWrapper(&lsw_itpack);
242242
break;
243243
default:
244244
// Sparse VNL - default
245-
std::cout << std::endl << ">>>>>Using LinearSystemWrapperVNL" << std::endl;
245+
std::cout << std::endl << "Using LinearSystemWrapperVNL" << std::endl;
246246
SH->SetLinearSystemWrapper(&lsw_vnl);
247247
break;
248248
}

Modules/Video/BridgeOpenCV/test/itkOpenCVImageBridgeGrayScaleTest.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ itkOpenCVImageBridgeGrayScaleTest(int argc, char * argv[])
260260
return EXIT_FAILURE;
261261
}
262262

263-
std::cout << "scalar 513x512" << std::endl;
263+
std::cout << "Scalar 513x512" << std::endl;
264264
if (itkRunScalarTest<unsigned char>(argv[2]) == EXIT_FAILURE)
265265
{
266266
return EXIT_FAILURE;
@@ -282,7 +282,7 @@ itkOpenCVImageBridgeGrayScaleTest(int argc, char * argv[])
282282
return EXIT_FAILURE;
283283
}
284284

285-
std::cout << "two-byte pixel image" << std::endl;
285+
std::cout << "Two-byte pixel image" << std::endl;
286286
if (itkRunScalarTest<unsigned short>(argv[3]) == EXIT_FAILURE)
287287
{
288288
return EXIT_FAILURE;

0 commit comments

Comments
 (0)