improve comment test.

test also for nested and mixed comments.
whitespaces/newlines are already intermixed between comments.
mutable
Antonio Cervone 7 years ago
parent 2f5c64225d
commit d292fce9f2
  1. 3
      test.cpp

@ -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]
})";

Loading…
Cancel
Save