Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
3fc9299b
Commit
3fc9299b
authored
Aug 03, 2018
by
Lele Gaifax
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add simple test for issue #1336
parent
11defb7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
prettywritertest.cpp
test/unittest/prettywritertest.cpp
+11
-0
No files found.
test/unittest/prettywritertest.cpp
View file @
3fc9299b
...
...
@@ -339,6 +339,17 @@ TEST(PrettyWriter, MoveCtor) {
}
#endif
TEST
(
PrettyWriter
,
Issue_1336
)
{
char
buf
[
100
]
=
"Hello"
;
StringBuffer
buffer
;
PrettyWriter
<
StringBuffer
>
writer
(
buffer
);
writer
.
String
(
buf
);
EXPECT_STREQ
(
"
\"
Hello
\"
"
,
buffer
.
GetString
());
EXPECT_TRUE
(
writer
.
IsComplete
());
\
}
#ifdef __clang__
RAPIDJSON_DIAG_POP
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment