From 3aacff8d19a1dd0bae6226b73c01f050143784a9 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Tue, 28 Jul 2015 18:16:55 +0200 Subject: Add check if stream has failed --- test/endian_str_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/endian_str_test.cpp') 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() -- cgit 0.0.5-2-1-g0f52