mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
json: Add some more negative test cases
Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
1879beab87
commit
8f45d83bdb
1 changed files with 3 additions and 0 deletions
|
|
@ -242,6 +242,9 @@ START_TEST(bad_test) {
|
|||
"-" /* Bad number string */,
|
||||
"{ \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { \"a\": { } } } } } } } } } } } } } } } } } } } } } }" /* Nested too deep */,
|
||||
"[ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ { \"a\": \"b\" } ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ]" /* Nested too deep */,
|
||||
"asdf" /* Unquoted string */,
|
||||
"{ a: true }" /* Unquoted key in object */,
|
||||
"\" \a\"" /* Alarm is not a valid character */
|
||||
};
|
||||
|
||||
for (i = 0; i < PA_ELEMENTSOF(bad_parse); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue