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"({
// comment
// comment /* with nested comment */
"a": 1,
// comment
// continued
@ -67,6 +67,7 @@ int main(int argc, char **argv) {
/* multi
line
comment */
// and single-line comment
"c": [1, 2, 3]
})";