Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Address clang-tidy findings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Nov 3, 2022
1 parent 072bed2 commit 9b0bc6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/static_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TEST_CASE("rsl::StaticString") {
auto const string = "Hello, world!"s;
auto const static_string = rsl::StaticString<14>(string);
CHECK(static_string.begin() != static_string.end());
auto begin = static_string.begin();
auto const* begin = static_string.begin();
CHECK(*begin++ == 'H');
CHECK(*begin++ == 'e');
CHECK(*begin++ == 'l');
Expand Down
2 changes: 1 addition & 1 deletion tests/static_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ TEST_CASE("rsl::StaticVector") {
}

TEST_CASE("rsl::to_vector") {
CHECK(rsl::to_vector(rsl::StaticVector<int, 0>{}) == std::vector<int>{});
CHECK(rsl::to_vector(rsl::StaticVector<int, 0>{}).empty());
CHECK(rsl::to_vector(rsl::StaticVector<int, 5>{1, 2, 3, 4, 5}) ==
std::vector<int>{1, 2, 3, 4, 5});
}

0 comments on commit 9b0bc6f

Please sign in to comment.