+ int i;
+
+ /* insert again with original value again */
+ for (i = start; i < number; i += 100)
+ {
+ int v = i;
+ char w[32];
+ sprintf(w, "%d", i);
+ YAZ_CHECK_EQ(dict_insert(dict, w, sizeof(v), &v), 2);
+ }
+ /* insert again with different value */
+ for (i = start; i < number; i += 100)
+ {
+ int v = i-1;
+ char w[32];
+ sprintf(w, "%d", i);
+ YAZ_CHECK_EQ(dict_insert(dict, w, sizeof(v), &v), 1);
+ }
+ /* insert again with original value again */
+ for (i = start; i < number; i += 100)
+ {
+ int v = i;
+ char w[32];
+ sprintf(w, "%d", i);
+ YAZ_CHECK_EQ(dict_insert(dict, w, sizeof(v), &v), 1);
+ }
+