X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_nmem.c;h=ac6910c0a9ed6e6ccaf72b40ca45e302cf8d0b5f;hb=7c7e37084545799555a7e49e0fb4d3d6f44f3a44;hp=a9d13631c57bc0ad85ff2ff449457bac63c556c9;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;p=yaz-moved-to-github.git diff --git a/test/test_nmem.c b/test/test_nmem.c index a9d1363..ac6910c 100644 --- a/test/test_nmem.c +++ b/test/test_nmem.c @@ -36,7 +36,7 @@ void tst_nmem_malloc(void) if ((int) sizeof(double) >= j) *(double*) cp = 12.2; } - + for (j = 2000; j<20000; j+= 2000) { cp = (char *) nmem_malloc(n, j); @@ -57,7 +57,7 @@ void tst_nmem_strsplit(void) nmem_strsplitx(nmem, ",", "", &array, &num, 0); YAZ_CHECK(num == 1); YAZ_CHECK(num > 0 && !strcmp(array[0], "")); - + nmem_strsplit(nmem, ",", ",,", &array, &num); YAZ_CHECK(num == 0); @@ -66,7 +66,7 @@ void tst_nmem_strsplit(void) YAZ_CHECK(num > 0 && !strcmp(array[0], "")); YAZ_CHECK(num > 1 && !strcmp(array[1], "")); YAZ_CHECK(num > 2 && !strcmp(array[2], "")); - + nmem_strsplit(nmem, ",", ",a,b,,cd", &array, &num); YAZ_CHECK(num == 3); YAZ_CHECK(num > 0 && !strcmp(array[0], "a"));