From f8909e875b367ee56003fd23fca69288e8f1e7e3 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Tue, 14 Apr 2015 21:50:13 +0800 Subject: [PATCH] Improve coverage of encoded streams --- test/unittest/encodedstreamtest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unittest/encodedstreamtest.cpp b/test/unittest/encodedstreamtest.cpp index af2171a..5affb5d 100644 --- a/test/unittest/encodedstreamtest.cpp +++ b/test/unittest/encodedstreamtest.cpp @@ -160,6 +160,7 @@ protected: } EXPECT_EQ('\0', s.Peek()); free(data); + EXPECT_EQ(size, eis.Tell()); } } @@ -280,7 +281,7 @@ TEST_F(EncodedStreamTest, AutoUTFInputStream) { { // Auto detection fail, use user defined UTF type - const char json[] = "{}"; + const char json[] = "{ }"; MemoryStream ms(json, sizeof(json)); AutoUTFInputStream eis(ms, kUTF8); EXPECT_FALSE(eis.HasBOM());