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"({
|
||||
// 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…
Reference in New Issue