projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformat: delete trailing whitespace
[idzebra-moved-to-github.git]
/
test
/
api
/
test_rank.c
diff --git
a/test/api/test_rank.c
b/test/api/test_rank.c
index
8bf17f4
..
331937a
100644
(file)
--- a/
test/api/test_rank.c
+++ b/
test/api/test_rank.c
@@
-49,7
+49,7
@@
const char *recs[] = {
" but all have the foo bar \n"
" </abstract>\n"
"</gils>\n",
" but all have the foo bar \n"
" </abstract>\n"
"</gils>\n",
-
+
0 };
static void tst(int argc, char **argv)
0 };
static void tst(int argc, char **argv)
@@
-58,13
+58,13
@@
static void tst(int argc, char **argv)
ZebraHandle zh = zebra_open(zs, 0);
YAZ_CHECK(tl_init_data(zh, recs));
ZebraHandle zh = zebra_open(zs, 0);
YAZ_CHECK(tl_init_data(zh, recs));
-
+
YAZ_CHECK(tl_ranking_query(zh, "@attr 1=4 @attr 2=102 the",
3, "first title", 936 ));
YAZ_CHECK(tl_ranking_query(zh, "@attr 1=4 @attr 2=102 the",
3, "first title", 936 ));
-
+
YAZ_CHECK(tl_ranking_query(zh, "@attr 1=62 @attr 2=102 foo",
3, "second title", 850 ));
YAZ_CHECK(tl_ranking_query(zh, "@attr 1=62 @attr 2=102 foo",
3, "second title", 850 ));
-
+
YAZ_CHECK(tl_close_down(zh, zs));
}
YAZ_CHECK(tl_close_down(zh, zs));
}