From 21657107207f88f55301f6117bd9575dc54d3284 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sat, 22 Feb 2020 21:19:15 +0100 Subject: [PATCH] added test for fdistream --- sciotest/main.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sciotest/main.cpp b/sciotest/main.cpp index 729ebd0..da9ec70 100644 --- a/sciotest/main.cpp +++ b/sciotest/main.cpp @@ -15,8 +15,13 @@ using namespace std; int main(int /*argc*/, const char * argv[]) { try { - sc::io::fdostream chan(1); - chan << "hello, sciotest\n"; + sc::io::fdostream chan {1}; + chan << "Please enter a line of text:\n"; + + string line; + sc::io::fdistream is {0}; + getline(is, line); + cout << line << '\n'; } catch (const exception& ex) { cerr << su::basename(argv[0]) << ": " << ex.what() << '\n'; return EXIT_FAILURE;