Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

request_value_semantics test failed#238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 4 commits intocpp-netlib:masterfromnico159:master
May 23, 2013
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix request_base_test
Don't use incorretly the string's substring constructor
  • Loading branch information
@nico159
nico159 committedMay 20, 2013
commitd43fddfd1f595dc7393b7786356d7d79e98d8c45
9 changes: 4 additions & 5 deletionshttp/test/request_base_test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,8 +42,8 @@ TEST(request_test, request_storage_flow) {
ASSERT_EQ(bytes_read, sizeof(data));
std::string flattened;
simple.flatten(flattened);
ASSERT_EQ(flattened,std::string(output, sizeof(data)));
ASSERT_EQ(std::string(data, sizeof(data)),std::string(output, sizeof(data)));
ASSERT_EQ(flattened, output);
ASSERT_EQ(std::string(data, sizeof(data)), output);
simple.clear();
}

Expand All@@ -58,9 +58,8 @@ TEST(request_test, request_storage_copy) {
ASSERT_EQ(bytes_read, sizeof(quick_brown));
std::string flattened;
copy.flatten(flattened);
ASSERT_EQ(flattened, std::string(output, sizeof(quick_brown)));
ASSERT_EQ(std::string(quick_brown, sizeof(quick_brown)),
std::string(output, sizeof(quick_brown)));
ASSERT_EQ(flattened, output);
ASSERT_EQ(std::string(quick_brown, sizeof(quick_brown)), output);
copy.clear();
flattened.clear();
original.flatten(flattened);
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp