X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_nmem.c;h=ac6910c0a9ed6e6ccaf72b40ca45e302cf8d0b5f;hp=a9d13631c57bc0ad85ff2ff449457bac63c556c9;hb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;hpb=7b27a8f378d73a86e8ff5e4fa3285117362481c5 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"));