Skip to content

Commit

Permalink
Automated fixes by clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and lballabio committed Dec 19, 2023
1 parent 0d0d23b commit 7cd3808
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test-suite/prices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE(testIntervalPriceMakeSeries) {

const TimeSeries<IntervalPrice> priceSeries = createSeries();

BOOST_TEST(3u == priceSeries.size());
BOOST_TEST(3U == priceSeries.size());
testEquality(priceSeries[{(Day)1, (Month)1, (Year)2001}], {11, 21, 31, 41});
testEquality(priceSeries[{(Day)2, (Month)2, (Year)2002}], {12, 22, 32, 42});
testEquality(priceSeries[{(Day)3, (Month)3, (Year)2003}], {13, 23, 33, 43});
Expand Down Expand Up @@ -176,7 +176,7 @@ BOOST_AUTO_TEST_CASE(testIntervalPriceExtractComponent) {
IntervalPrice::extractComponent(createSeries(), IntervalPrice::Low);

for (const auto& series : {openSeries, closeSeries, highSeries, lowSeries})
BOOST_TEST(3u == series.size());
BOOST_TEST(3U == series.size());

const std::array<Date, 3> expectedDates{Date{(Day)1, (Month)1, (Year)2001},
Date{(Day)2, (Month)2, (Year)2002},
Expand Down
2 changes: 1 addition & 1 deletion test-suite/timegrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ BOOST_AUTO_TEST_CASE(testIndex)

BOOST_CHECK_THROW(tg.index(-2.0), Error);

BOOST_ASSERT(4u == tg.size());
BOOST_ASSERT(4U == tg.size());

BOOST_CHECK_THROW(tg.index(-0.1), Error);
BOOST_TEST(0 == tg.index(0.0));
Expand Down

0 comments on commit 7cd3808

Please sign in to comment.