[json-glib/json-glib-0-10] tests: Add another trailing comma invalid test (cherry picked from commit 88ac0d5111eb528e4c396e4c16
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib/json-glib-0-10] tests: Add another trailing comma invalid test (cherry picked from commit 88ac0d5111eb528e4c396e4c16
- Date: Fri, 19 Mar 2010 17:01:38 +0000 (UTC)
commit 7ced197c050f56c2555b9190d648f22e337209b8
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Mar 5 19:23:49 2010 +0000
tests: Add another trailing comma invalid test
(cherry picked from commit 88ac0d5111eb528e4c396e4c169ceee4fb046e62)
Signed-off-by: Emmanuele Bassi <ebassi linux intel com>
tests/test-parser.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-parser.c b/tests/test-parser.c
index 2f72d85..ffda63a 100644
--- a/tests/test-parser.c
+++ b/tests/test-parser.c
@@ -117,7 +117,8 @@ static const struct
{ "[ true, ]" },
{ "{ \"foo\" : true \"bar\" : false }" },
{ "[ true, [ false, ] ]" },
- { "{ \"foo\" : { \"bar\" : false, } }" }
+ { "{ \"foo\" : { \"bar\" : false, } }" },
+ { "[ { }, { }, { }, ]" }
};
static guint n_test_base_values = G_N_ELEMENTS (test_base_values);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]