diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-09 17:14:00 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-09 17:14:00 +0100 |
commit | ee83336050553a2dbd64c27b8e384139c7ccec9a (patch) | |
tree | b2c7b58364bfbafdecc0f9747ea2aa237fd63cbf /tests | |
parent | fa67300f537808f7e3fa3bb501f1f268d520073b (diff) |
Adding 'Output' object
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Handles.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-Handles.cc b/tests/test-Handles.cc index c500394..f9fd055 100644 --- a/tests/test-Handles.cc +++ b/tests/test-Handles.cc @@ -1,5 +1,6 @@ #include <Main.h> #include <Input.h> +#include <Output.h> #ifdef _WIN32 void ctime_r(const time_t * t, char * str) { @@ -62,5 +63,12 @@ void MainTask::Do() { Assert(r == (s - 5)); Assert(memcmp(buf1, buf2, s) == 0); + IO<Handle> o(new Output("tests/out.txt")); + s = o->wtell(); + Assert(s == 0); + s = o->getSize(); + Assert(s == 0); + o->write("foo\n", 4); + Printer::log(M_STATUS, "Test::Handles passed."); } |