[libcxx-commits] [PATCH] D155360: [libc++][tests] Fix a test testing wrong class
Piotr Fusik via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 15 02:17:46 PDT 2023
pfusik created this revision.
Herald added a project: All.
pfusik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155360
Files:
libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp
Index: libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp
===================================================================
--- libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp
+++ 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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155360.540654.patch
Type: text/x-patch
Size: 1293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230715/dd15c1fd/attachment.bin>
More information about the libcxx-commits
mailing list