diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-08-06 13:34:32 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-08-06 13:34:32 +0200 |
| commit | 8565a07570ccd38209dd593c1116e917cd7c7230 (patch) | |
| tree | 0e6cb741fc86bfa916b944b46bae3b0c594c0662 /test/io/read_test.cpp | |
| parent | e9dd438bd78b10c56e47479db7c7b3e2a3e9ab3a (diff) | |
| download | Project-Tick-8565a07570ccd38209dd593c1116e917cd7c7230.tar.gz Project-Tick-8565a07570ccd38209dd593c1116e917cd7c7230.zip | |
Add test for EOF within key
Diffstat (limited to 'test/io/read_test.cpp')
| -rw-r--r-- | test/io/read_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/io/read_test.cpp b/test/io/read_test.cpp index d13402c2ea..ab1a46cc97 100644 --- a/test/io/read_test.cpp +++ b/test/io/read_test.cpp @@ -153,6 +153,13 @@ void test_read_errors() ASSERT(file); EXPECT_EXCEPTION(reader.read_tag(), io::input_error); ASSERT(!file); + + //EOF within a key in a compound + file.close(); + file.open("errortest_eof2", std::ios::binary); + ASSERT(file); + EXPECT_EXCEPTION(reader.read_tag(), io::input_error); + ASSERT(!file); } int main() |
