[json-glib] tests: Add another trailing comma invalid test



commit 88ac0d5111eb528e4c396e4c169ceee4fb046e62
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri Mar 5 19:23:49 2010 +0000

    tests: Add another trailing comma invalid test

 json-glib/tests/parser-test.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/json-glib/tests/parser-test.c b/json-glib/tests/parser-test.c
index 2f72d85..ffda63a 100644
--- a/json-glib/tests/parser-test.c
+++ b/json-glib/tests/parser-test.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]