X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Ftest_retrieval.c;h=0d9327704045b32ee018b3f60f639fdb54abb1c6;hb=e2b8bf88befb43e4a189ce3e659c595e5b3af7dc;hp=2b971df17e564e90eae46af9328983e2c9257baf;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;p=yaz-moved-to-github.git
diff --git a/test/test_retrieval.c b/test/test_retrieval.c
index 2b971df..0d93277 100644
--- a/test/test_retrieval.c
+++ b/test/test_retrieval.c
@@ -1,5 +1,5 @@
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
@@ -49,7 +49,7 @@ yaz_retrieval_t conv_configure(const char *xmlstring, WRBUF w)
else
{
int r = yaz_retrieval_configure(p, ptr);
-
+
if (r)
{
wrbuf_puts(w, yaz_retrieval_get_error(p));
@@ -59,7 +59,7 @@ yaz_retrieval_t conv_configure(const char *xmlstring, WRBUF w)
}
xmlFreeDoc(doc);
return p;
- }
+ }
}
int conv_configure_test(const char *xmlstring, const char *expect_error,
@@ -102,10 +102,10 @@ int conv_configure_test(const char *xmlstring, const char *expect_error,
static void tst_configure(void)
{
- YAZ_CHECK(conv_configure_test("",
+ YAZ_CHECK(conv_configure_test("",
"Expected element ", 0));
YAZ_CHECK(conv_configure_test("", 0, 0));
@@ -121,7 +121,7 @@ static void tst_configure(void)
YAZ_CHECK(conv_configure_test(""
- ""
""
@@ -131,7 +131,7 @@ static void tst_configure(void)
"'unknown'", 0));
YAZ_CHECK(conv_configure_test(""
- ""
""
@@ -140,14 +140,14 @@ static void tst_configure(void)
"value syntax='unknown_synt'", 0));
YAZ_CHECK(conv_configure_test(""
- ""
"",
0, 0));
YAZ_CHECK(conv_configure_test(""
- ""
"",
@@ -155,9 +155,9 @@ static void tst_configure(void)
YAZ_CHECK(conv_configure_test(""
- ""
"",
@@ -166,18 +166,18 @@ static void tst_configure(void)
YAZ_CHECK(conv_configure_test(""
- ""
""
- ""
+ ""
"",
"Element : expected zero or one element "
", got ", 0));
YAZ_CHECK(conv_configure_test(""
- ""
@@ -190,7 +190,7 @@ static void tst_configure(void)
" got 'schema'", 0));
YAZ_CHECK(conv_configure_test(""
- ""
@@ -202,7 +202,7 @@ static void tst_configure(void)
0, 0));
YAZ_CHECK(conv_configure_test(""
- ""
@@ -216,7 +216,7 @@ static void tst_configure(void)
YAZ_CHECK(conv_configure_test(""
- ""
@@ -262,6 +262,25 @@ static void tst_configure(void)
"Element : Unsupported"
" input format defined by attribute value", 0));
+
+ YAZ_CHECK(conv_configure_test(""
+ ""
+ ""
+ ""
+ ""
+ ""
+ ""
+ ""
+ "",
+ "Element : "
+ "only one allowed", 0));
+
+
YAZ_CHECK(conv_configure_test(""
""
""