X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_nmem.c;h=5eaab6058c8ffcba717489c2fe90153039f952b9;hp=4dd776929fe48496bf4cb17811feaf7c2b867620;hb=800e0637cfe783fa9966e11712b7e20023ba2245;hpb=794c0656c852e13d5c9b2fdc046309d83caf6916 diff --git a/test/test_nmem.c b/test/test_nmem.c index 4dd7769..5eaab60 100644 --- a/test/test_nmem.c +++ b/test/test_nmem.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -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"));