mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 19:10:24 +01:00
Fix OStreamWrapper test
This commit is contained in:
@@ -27,7 +27,7 @@ template <typename StringStreamType>
|
|||||||
static void TestStringStream() {
|
static void TestStringStream() {
|
||||||
typedef typename StringStreamType::char_type Ch;
|
typedef typename StringStreamType::char_type Ch;
|
||||||
|
|
||||||
Ch s[] = { 'A', 'B', 'C' };
|
Ch s[] = { 'A', 'B', 'C', '\0' };
|
||||||
StringStreamType oss(s);
|
StringStreamType oss(s);
|
||||||
BasicOStreamWrapper<StringStreamType> os(oss);
|
BasicOStreamWrapper<StringStreamType> os(oss);
|
||||||
for (size_t i = 0; i < 3; i++)
|
for (size_t i = 0; i < 3; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user