Skip to content

Commit

Permalink
Make strings const
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed Mar 18, 2024
1 parent a8502a6 commit f6807be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/functions/sparksql/tests/StringTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ TEST_F(StringTest, lengthVarbinary) {
}

TEST_F(StringTest, lpad) {
std::string invalidString = "Ψ\xFF\xFFΣΓΔA";
std::string invalidPadString = "\xFFΨ\xFF";
const std::string invalidString = "Ψ\xFF\xFFΣΓΔA";
const std::string invalidPadString = "\xFFΨ\xFF";

const auto lpad = [&](const std::optional<std::string>& string,
const std::optional<int32_t>& size) {
Expand Down

0 comments on commit f6807be

Please sign in to comment.