Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Dec 26, 2023
1 parent d52a441 commit 934ea57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/post_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ TEST(UrlEncodedPostTests, FormPostFileBufferPointerTest) {
TEST(UrlEncodedPostTests, FormPostFileBufferArrayTest) {
const char content[] = "hello world";
Url url{server->GetBaseUrl() + "/form_post.html"};
// We subtract 1 from '\n'() because we don't want to include the terminating null
Response response = cpr::Post(url, Multipart{{"x", Buffer{std::begin(content), '\n'(content) -1, "test_file"}}});
// We subtract 1 from std::end() because we don't want to include the terminating null
Response response = cpr::Post(url, Multipart{{"x", Buffer{std::begin(content), std::end(content) - 1, "test_file"}}});
std::string expected_text{
"{\n"
" \"x\": \"test_file=" +
Expand Down

0 comments on commit 934ea57

Please sign in to comment.