aboutsummaryrefslogtreecommitdiff
path: root/tests/base64
diff options
context:
space:
mode:
Diffstat (limited to 'tests/base64')
-rw-r--r--tests/base64/driver.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/base64/driver.cxx b/tests/base64/driver.cxx
index 7870424..7746637 100644
--- a/tests/base64/driver.cxx
+++ b/tests/base64/driver.cxx
@@ -44,6 +44,8 @@ encode (const string& i, const string& o)
is.clear ();
#endif
+ assert (!is.eof ());
+
ostringstream os;
base64_encode (os, is);
r = os.str () == o && is.eof ();