improve comment test.

test also for nested and mixed comments.
whitespaces/newlines are already intermixed between comments.
mutable-v2
Antonio Cervone 2015-11-30 12:42:24 +01:00
parent 2f5c64225d
commit d292fce9f2
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ int main(int argc, char **argv) {
} }
const string comment_test = R"({ const string comment_test = R"({
// comment // comment /* with nested comment */
"a": 1, "a": 1,
// comment // comment
// continued // continued
@ -67,6 +67,7 @@ int main(int argc, char **argv) {
/* multi /* multi
line line
comment */ comment */
// and single-line comment
"c": [1, 2, 3] "c": [1, 2, 3]
})"; })";