- if (argc <= 1)
- {
- char *cs[] = {
- "4497",
- "4498",
- "4499",
- "45"};
- strcpy(scan_term, "4499");
- errors += tst(dict, 2, 2, scan_term, cs, 0);
- }
- if (argc <= 1)
- {
- char *cs[] = {
- "4498",
- "4499",
- "45",
- "450"};
- strcpy(scan_term, "45");
- errors += tst(dict, 2, 2, scan_term, cs, 0);
- }
+ /* Insert "10", "11", "12", .. "99", "100", ... number */
+ for (i = 10; i<number; i++)
+ {
+ char w[32];
+ sprintf(w, "%d", i);
+ YAZ_CHECK_EQ(dict_insert (dict, w, sizeof(int), &i), 0);
+ }
+
+ if (after > 0 || before > 0)
+ do_scan(dict, before, after, scan_term, 0, 1);
+ else
+ tst(dict);
+
+ dict_close(dict);