[libsoup/wip/xmlrpc-variant: 13/18] xmlrpc: add unit test for signature with too few/many values for tuple



commit b82af75eeebbe5bae7b4d2c849de71316bac51c0
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Mon Aug 10 14:54:15 2015 -0400

    xmlrpc: add unit test for signature with too few/many values for tuple

 tests/xmlrpc-test.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/tests/xmlrpc-test.c b/tests/xmlrpc-test.c
index dcd9f64..f9bbb2c 100644
--- a/tests/xmlrpc-test.c
+++ b/tests/xmlrpc-test.c
@@ -655,6 +655,15 @@ test_deserializer (void)
                "<params>"
                "<param><value><int>256</int></value></param>"
                "</params>");
+       verify_deserialization_fail ("(ii)",
+               "<params>"
+               "<param><value><int>1</int></value></param>"
+               "</params>");
+       verify_deserialization_fail ("(i)",
+               "<params>"
+               "<param><value><int>1</int></value></param>"
+               "<param><value><int>2</int></value></param>"
+               "</params>");
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]