diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-09-29 10:21:26 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-09-29 10:21:26 +0200 |
commit | e52b751b87ecf4feaa1c3af323fc753fba5f87b3 (patch) | |
tree | 997b8a78eaa130d47ff661db185db82286869886 | |
parent | 20714489cf94f48a5ca7a9d58c44544d6811ca11 (diff) |
remove unneeded array tests
These are tested in libgnunetutil now.
-rw-r--r-- | test_crypto.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/test_crypto.c b/test_crypto.c index c2f5231..6a49927 100644 --- a/test_crypto.c +++ b/test_crypto.c @@ -33,48 +33,6 @@ static uint16_t prizes; static struct BRANDT_Auction *ad; static int -test_smc_2d_array () -{ - gcry_mpi_point_t **array; - uint16_t size1 = 3; - uint16_t size2 = 7; - uint16_t i, j; - - array = smc_init2 (size1, size2); - CHECK (array, "memory allocation failed"); - - for (i = 0; i < size1; i++) - for (j = 0; j < size2; j++) - CHECK (array[i][j], "point has not been initialized"); - - smc_free2 (array, size1, size2); - return 1; -} - - -static int -test_smc_3d_array () -{ - gcry_mpi_point_t ***array; - uint16_t size1 = 3; - uint16_t size2 = 7; - uint16_t size3 = 11; - uint16_t i, j, k; - - array = smc_init3 (size1, size2, size3); - CHECK (array, "memory allocation failed"); - - for (i = 0; i < size1; i++) - for (j = 0; j < size2; j++) - for (k = 0; k < size3; k++) - CHECK (array[i][j][k], "point has not been initialized"); - - smc_free3 (array, size1, size2, size3); - return 1; -} - - -static int test_serialization () { gcry_mpi_point_t oldp = gcry_mpi_point_new (0); @@ -336,8 +294,6 @@ main (int argc, char *argv[]) BRANDT_init (edc); /* tests that need to run only once */ - RUN (test_smc_2d_array); - RUN (test_smc_3d_array); RUN (test_serialization); for (tests_run = 0; tests_run < repeat; tests_run++) |