improve comment test.
test also for nested and mixed comments. whitespaces/newlines are already intermixed between comments.mutable-v2
parent
2f5c64225d
commit
d292fce9f2
3
test.cpp
3
test.cpp
|
@ -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]
|
||||||
})";
|
})";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue