diff options
author | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 16:36:53 +0200 |
---|---|---|
committer | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 19:36:01 +0200 |
commit | 776b12fc811e38907bcca064c2ffc4c221794e94 (patch) | |
tree | 6721dbee00929096df23c0fc936bdb2966607092 /tests/core | |
parent | 8c60ac77238f3b514d4603af9014c48b067b0a05 (diff) |
Use do_run_from_file() for test_istream
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/test_istream.in | 16 | ||||
-rw-r--r-- | tests/core/test_istream.out | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/core/test_istream.in b/tests/core/test_istream.in new file mode 100644 index 00000000..9a9d1c9a --- /dev/null +++ b/tests/core/test_istream.in @@ -0,0 +1,16 @@ + + #include <string> + #include <sstream> + #include <iostream> + + int main() + { + std::string mystring("1 2 3"); + std::istringstream is(mystring); + int one, two, three; + + is >> one >> two >> three; + + printf( "%i %i %i", one, two, three ); + } +
\ No newline at end of file diff --git a/tests/core/test_istream.out b/tests/core/test_istream.out new file mode 100644 index 00000000..703ca85b --- /dev/null +++ b/tests/core/test_istream.out @@ -0,0 +1 @@ +1 2 3
\ No newline at end of file |