diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-28 18:16:55 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-28 20:26:58 +0200 |
| commit | 3aacff8d19a1dd0bae6226b73c01f050143784a9 (patch) | |
| tree | 948f34d68cd853f061f125dc5acebf5503462ce9 | |
| parent | b7974ffbefd62c92a8f8988b08c19224b6ba7908 (diff) | |
| download | Project-Tick-3aacff8d19a1dd0bae6226b73c01f050143784a9.tar.gz Project-Tick-3aacff8d19a1dd0bae6226b73c01f050143784a9.zip | |
Add check if stream has failed
| -rw-r--r-- | test/endian_str_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/endian_str_test.cpp b/test/endian_str_test.cpp index 82bb429d50..5f1df35de4 100644 --- a/test/endian_str_test.cpp +++ b/test/endian_str_test.cpp @@ -72,6 +72,8 @@ void test_uint() ASSERT(u32 == 0x090A0B0CUL); read_big(str, u64); ASSERT(u64 == 0x090A0B0C0D0E0F10ULL); + + ASSERT(str); //Check if stream has failed } void test_sint() @@ -123,6 +125,8 @@ void test_sint() ASSERT(i32 == -0x090A0B0CUL); read_big(str, i64); ASSERT(i64 == -0x090A0B0C0D0E0F10ULL); + + ASSERT(str); //Check if stream has failed } int main() |
