diff options
Diffstat (limited to 'test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp')
-rw-r--r-- | test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp b/test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp index ad5fe5149df2..d4155ea8e7f5 100644 --- a/test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp +++ b/test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp @@ -25,22 +25,16 @@ int main() fs >> x; assert(x == 3.25); } - { - std::ifstream fs(std::string("test.dat"), std::ios_base::out); - double x = 0; - fs >> x; - assert(x == 3.25); - } + // std::ifstream(const std::string&, std::ios_base::openmode) is tested in + // test/std/input.output/file.streams/fstreams/ofstream.cons/string.pass.cpp + // which creates writable files. { std::wifstream fs(std::string("test.dat")); double x = 0; fs >> x; assert(x == 3.25); } - { - std::wifstream fs(std::string("test.dat"), std::ios_base::out); - double x = 0; - fs >> x; - assert(x == 3.25); - } + // std::wifstream(const std::string&, std::ios_base::openmode) is tested in + // test/std/input.output/file.streams/fstreams/ofstream.cons/string.pass.cpp + // which creates writable files. } |