Skip to content

Commit

Permalink
Fix clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanel committed Sep 27, 2024
1 parent d656333 commit 9d42d18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/interface/test/exchangeretriever_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ TEST_F(ExchangeRetrieverTest, RetrieveSelectedExchangesSelectedOrder) {
EXPECT_EQ(selectedExchanges[1]->name(), "bithumb");
EXPECT_EQ(selectedExchanges[2]->name(), "bithumb");

std::rotate(std::begin(kAllExchanges), std::begin(kAllExchanges) + 2, std::end(kAllExchanges));
std::ranges::rotate(kAllExchanges, std::begin(kAllExchanges) + 2);
}
}

Expand All @@ -182,7 +182,7 @@ TEST_F(ExchangeRetrieverTest, RetrieveAtMostOneAccountSelectedExchanges) {
EXPECT_EQ(exchangesInitialOrder.front()->name(), "bithumb");
EXPECT_EQ(exchangesInitialOrder.back()->name(), "kraken");

std::rotate(std::begin(kAllExchanges), std::begin(kAllExchanges) + 2, std::end(kAllExchanges));
std::ranges::rotate(kAllExchanges, std::begin(kAllExchanges) + 2);
}
}

Expand All @@ -198,7 +198,7 @@ TEST_F(ExchangeRetrieverTest, RetrieveUniquePublicExchange) {
EXPECT_EQ(selectedExchanges.front()->name(), "kraken");
EXPECT_EQ(selectedExchanges.back()->name(), "bithumb");

std::rotate(std::begin(kAllExchanges), std::begin(kAllExchanges) + 2, std::end(kAllExchanges));
std::ranges::rotate(kAllExchanges, std::begin(kAllExchanges) + 2);
}
}
} // namespace cct

0 comments on commit 9d42d18

Please sign in to comment.