X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_soap2.c;h=5120686fe37322525d9242c56ce38ae5b8b00d9e;hp=9de11ae87d0e2f8852287c24cc0ca18b55dc40df;hb=9a50808021be48e8ff272f762b9f8245330a79e4;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a diff --git a/test/test_soap2.c b/test/test_soap2.c index 9de11ae..5120686 100644 --- a/test/test_soap2.c +++ b/test/test_soap2.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 @@ -32,9 +32,9 @@ static void tst_srw(void) YAZ_CHECK(sr); YAZ_CHECK(p); #if 0 - sr->u.request->query.cql = "jordb" "\xe6" "r"; + sr->u.request->query = "jordb" "\xe6" "r"; #else - sr->u.request->query.cql = "jordbaer"; + sr->u.request->query = "jordbaer"; #endif p->which = Z_SOAP_generic; @@ -81,7 +81,7 @@ static void tst_array_to_uri(void) { YAZ_CHECK(names[0] && !strcmp(names[0], "a")); YAZ_CHECK(values[0] && !strcmp(values[0], "AA")); - + YAZ_CHECK(names[1] && !strcmp(names[1], "bb")); YAZ_CHECK(values[1] && !strcmp(values[1], "BB")); @@ -142,7 +142,7 @@ static void tst_array_to_uri(void) YAZ_CHECK(values[1] && !strcmp(values[1], "")); YAZ_CHECK(names[2] && !strcmp(names[2], "x")); - YAZ_CHECK(values[2] && !strcmp(values[2], "")); + YAZ_CHECK(values[2] && !strcmp(values[2], "")); YAZ_CHECK(names[3] == 0); YAZ_CHECK(values[3] == 0);