Skip to content

Commit

Permalink
DOC: Improve comments in itkHistogramTest.cxx
Browse files Browse the repository at this point in the history
Improve comments in `itkHistogramTest.cxx`:
- Make comments more concise.
- Do not capitalize common nouns.
  • Loading branch information
jhlegarreta authored and dzenanz committed Sep 8, 2023
1 parent d6111f2 commit 657b793
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Modules/Numerics/Statistics/test/itkHistogramTest.cxx
Expand Up @@ -442,7 +442,7 @@ itkHistogramTest(int, char *[])

ITK_TEST_EXPECT_TRUE(!getindex2);

// Testing GetIndex() for values that are above the median value of the Bin.
// Test GetIndex() for values that are above the median value of the bin.
IndexType pindex(numberOfComponents);
pindex.Fill(32);
MeasurementVectorType measurementVector = histogram->GetMeasurementVector(pindex);
Expand All @@ -460,7 +460,7 @@ itkHistogramTest(int, char *[])
ITK_TEST_EXPECT_EQUAL(gindex[gik2], 32);
}

// Testing GetIndex() for values that are below the median value of the Bin.
// Test GetIndex() for values that are below the median value of the bin.
for (unsigned int gik3 = 0; gik3 < numberOfComponents; ++gik3)
{
measurementVector[gik3] -= 0.6;
Expand All @@ -473,7 +473,7 @@ itkHistogramTest(int, char *[])
ITK_TEST_EXPECT_EQUAL(gindex[gik4], 32);
}

// Testing GetIndex on the upper and lower bounds
// Test GetIndex on the upper and lower bounds
IndexType upperIndex(numberOfComponents);
ITK_TEST_EXPECT_TRUE(histogram->GetIndex(upperBound, upperIndex));

Expand All @@ -490,7 +490,7 @@ itkHistogramTest(int, char *[])
ITK_TEST_EXPECT_EQUAL(lowerIndex[k1], 0);
}

// Testing GetIndex above the upper bound of a bin
// Test GetIndex above the upper bound of a bin
histogram->SetClipBinsAtEnds(false);
MeasurementVectorType measurementVectorAbove(numberOfComponents);
for (unsigned int gupk1 = 0; gupk1 < numberOfComponents; ++gupk1)
Expand Down Expand Up @@ -611,7 +611,7 @@ itkHistogramTest(int, char *[])
}


// Testing methods specific to Iterators
// Test methods specific to Iterators
{
using IteratorType = HistogramType::Iterator;
IteratorType iter = histogram->Begin();
Expand Down Expand Up @@ -643,7 +643,7 @@ itkHistogramTest(int, char *[])
ITK_TEST_EXPECT_EQUAL(iter6.GetInstanceIdentifier(), id2);
}

// Testing methods specific to ConstIterators
// Test methods specific to ConstIterators
{
using ConstIteratorType = HistogramType::ConstIterator;
ConstIteratorType iter = histogram->Begin();
Expand Down

0 comments on commit 657b793

Please sign in to comment.