diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-23 22:03:28 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-23 22:03:28 +0000 |
commit | d72ece646278654175103de0509a7db422b94327 (patch) | |
tree | ee29e12afb4f408674c840bf38bc41e1366df525 /libcxx/test/std/strings/basic.string/string.modifiers/string_replace | |
parent | 640660aa3f5d3b9d5bbd944fc5fd2d02b0a4f0d5 (diff) | |
download | bcm5719-llvm-d72ece646278654175103de0509a7db422b94327.tar.gz bcm5719-llvm-d72ece646278654175103de0509a7db422b94327.zip |
[libcxx] [test] D27027: Strip trailing whitespace.
llvm-svn: 287829
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.modifiers/string_replace')
4 files changed, 7 insertions, 7 deletions
diff --git a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp index 1231af8a6a9..e456d395220 100644 --- a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_iter_iter.pass.cpp @@ -1012,14 +1012,14 @@ int main() typedef std::string S; S s_short = "123/"; S s_long = "Lorem ipsum dolor sit amet, consectetur/"; - + s_short.replace(s_short.begin(), s_short.begin(), s_short.begin(), s_short.end()); assert(s_short == "123/123/"); s_short.replace(s_short.begin(), s_short.begin(), s_short.begin(), s_short.end()); assert(s_short == "123/123/123/123/"); s_short.replace(s_short.begin(), s_short.begin(), s_short.begin(), s_short.end()); assert(s_short == "123/123/123/123/123/123/123/123/"); - + s_long.replace(s_long.begin(), s_long.begin(), s_long.begin(), s_long.end()); assert(s_long == "Lorem ipsum dolor sit amet, consectetur/Lorem ipsum dolor sit amet, consectetur/"); } diff --git a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer.pass.cpp b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer.pass.cpp index 20d185f399f..f642d3a4f92 100644 --- a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer.pass.cpp @@ -287,14 +287,14 @@ int main() typedef std::string S; S s_short = "123/"; S s_long = "Lorem ipsum dolor sit amet, consectetur/"; - + s_short.replace(s_short.begin(), s_short.begin(), s_short.c_str()); assert(s_short == "123/123/"); s_short.replace(s_short.begin(), s_short.begin(), s_short.c_str()); assert(s_short == "123/123/123/123/"); s_short.replace(s_short.begin(), s_short.begin(), s_short.c_str()); assert(s_short == "123/123/123/123/123/123/123/123/"); - + s_long.replace(s_long.begin(), s_long.begin(), s_long.c_str()); assert(s_long == "Lorem ipsum dolor sit amet, consectetur/Lorem ipsum dolor sit amet, consectetur/"); } diff --git a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer_size.pass.cpp b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer_size.pass.cpp index 59d34fef26c..69503680722 100644 --- a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer_size.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/iter_iter_pointer_size.pass.cpp @@ -977,14 +977,14 @@ int main() typedef std::string S; S s_short = "123/"; S s_long = "Lorem ipsum dolor sit amet, consectetur/"; - + s_short.replace(s_short.begin(), s_short.begin(), s_short.data(), s_short.size()); assert(s_short == "123/123/"); s_short.replace(s_short.begin(), s_short.begin(), s_short.data(), s_short.size()); assert(s_short == "123/123/123/123/"); s_short.replace(s_short.begin(), s_short.begin(), s_short.data(), s_short.size()); assert(s_short == "123/123/123/123/123/123/123/123/"); - + s_long.replace(s_long.begin(), s_long.begin(), s_long.data(), s_long.size()); assert(s_long == "Lorem ipsum dolor sit amet, consectetur/Lorem ipsum dolor sit amet, consectetur/"); } diff --git a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_T_size_size.pass.cpp b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_T_size_size.pass.cpp index 542da0d08cb..840b7614f48 100644 --- a/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_T_size_size.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/size_size_T_size_size.pass.cpp @@ -10,7 +10,7 @@ // <string> // template <class T> -// basic_string& replace(size_type pos1, size_type n1, const T& t, +// basic_string& replace(size_type pos1, size_type n1, const T& t, // size_type pos2, size_type n=npos); // // Mostly we're testing string_view here |