From 798ce36d51607d7e0196344424c2a7bba9f00a21 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 8 Aug 2010 21:22:28 +0200 Subject: [PATCH] Add check for CCL syntax error + expected results test_http_urls includes check for CCL syntax error as well as zero hits. test_http_52..test_http_57.res are expected results. --- test/test_http_52.res | 2 ++ test/test_http_53.res | 2 ++ test/test_http_54.res | 2 ++ test/test_http_55.res | 9 +++++++++ test/test_http_56.res | 2 ++ test/test_http_57.res | 9 +++++++++ test/test_http_urls | 6 ++++-- 7 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 test/test_http_52.res create mode 100644 test/test_http_53.res create mode 100644 test/test_http_54.res create mode 100644 test/test_http_55.res create mode 100644 test/test_http_56.res create mode 100644 test/test_http_57.res diff --git a/test/test_http_52.res b/test/test_http_52.res new file mode 100644 index 0000000..1dc284e --- /dev/null +++ b/test/test_http_52.res @@ -0,0 +1,2 @@ + +OK81 \ No newline at end of file diff --git a/test/test_http_53.res b/test/test_http_53.res new file mode 100644 index 0000000..42534e3 --- /dev/null +++ b/test/test_http_53.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_http_54.res b/test/test_http_54.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_http_54.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_http_55.res b/test/test_http_55.res new file mode 100644 index 0000000..d3b889f --- /dev/null +++ b/test/test_http_55.res @@ -0,0 +1,9 @@ + + +OK +0 +0 +0 +0 +0 + diff --git a/test/test_http_56.res b/test/test_http_56.res new file mode 100644 index 0000000..e2db1ca --- /dev/null +++ b/test/test_http_56.res @@ -0,0 +1,2 @@ + +query \ No newline at end of file diff --git a/test/test_http_57.res b/test/test_http_57.res new file mode 100644 index 0000000..d3b889f --- /dev/null +++ b/test/test_http_57.res @@ -0,0 +1,9 @@ + + +OK +0 +0 +0 +0 +0 + diff --git a/test/test_http_urls b/test/test_http_urls index 1862126..1f68455 100644 --- a/test/test_http_urls +++ b/test/test_http_urls @@ -51,5 +51,7 @@ http://localhost:9763/search.pz2?session=7&command=search&query=greece http://localhost:9763/search.pz2?session=6&command=record&id=title+computer+processing+of+dynamic+images+from+an+anger+scintillation+camera+author+medium+book&offset=0 http://localhost:9763/search.pz2?command=init http://localhost:9763/search.pz2?session=8&command=settings&pz:name%5Bz3950.indexdata.com%2Fmarc%5D=marc&pz:requestsyntax%5Bz3950.indexdata.com%2Fmarc%5D=usmarc&pz:nativesyntax%5Bz3950.indexdata.com%2Fmarc%5D=iso2709&pz:xslt%5Bz3950.indexdata.com%2Fmarc%5D=marc21%5Ftest.xsl&pz:recordfilter%5Bz3950.indexdata.com%2Fmarc%5D=date -http://localhost:9763/search.pz2?session=3&command=search&query=xyzzyz -1 http://localhost:9763/search.pz2?session=6&command=show&block=1 \ No newline at end of file +http://localhost:9763/search.pz2?session=8&command=search&query=xyzzyz +2 http://localhost:9763/search.pz2?session=8&command=show&block=1 +http://localhost:9763/search.pz2?session=8&command=search&query=a+and +1 http://localhost:9763/search.pz2?session=8&command=show&block=1 -- 1.7.10.4