[libcxx-commits] [libcxx] 34bd7e2 - [libc++][tests] Fix a test testing wrong class
Piotr Fusik via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 15 07:15:00 PDT 2023
Author: Piotr Fusik
Date: 2023-07-15T16:14:55+02:00
New Revision: 34bd7e229d8262783a64401814dc0b6bcdf1b8af
URL: https://github.com/llvm/llvm-project/commit/34bd7e229d8262783a64401814dc0b6bcdf1b8af
DIFF: https://github.com/llvm/llvm-project/commit/34bd7e229d8262783a64401814dc0b6bcdf1b8af.diff
LOG: [libc++][tests] Fix a test testing wrong class
Reviewed By: #libc, Mordante
Differential Revision: https://reviews.llvm.org/D155360
Added:
Modified:
libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp b/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp
index d5e457867f7cfb..05eeb65f6072a9 100644
--- a/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp
@@ -25,17 +25,16 @@
int main(int, char**)
{
- std::vector<std::istringstream> vecis;
- vecis.push_back(std::istringstream());
- vecis.back().str("hub started at [00 6b 8b 45 69]");
- vecis.push_back(std::istringstream());
- vecis.back().str("hub started at [00 6b 8b 45 69]");
- for (std::size_t n = 0; n < vecis.size(); n++)
- {
- assert(vecis[n].str().size() == 31);
- vecis[n].seekg(0, std::ios_base::beg);
- assert(vecis[n].str().size() == 31);
- }
+ std::vector<std::stringstream> vecss;
+ vecss.push_back(std::stringstream());
+ vecss.back().str("hub started at [00 6b 8b 45 69]");
+ vecss.push_back(std::stringstream());
+ vecss.back().str("hub started at [00 6b 8b 45 69]");
+ for (std::size_t n = 0; n < vecss.size(); n++) {
+ assert(vecss[n].str().size() == 31);
+ vecss[n].seekg(0, std::ios_base::beg);
+ assert(vecss[n].str().size() == 31);
+ }
return 0;
}
More information about the libcxx-commits
mailing list