From eb7a68d416fc3f5101e1f09e663ff26d34e169ad Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Mon, 14 Nov 2011 13:55:56 +0100 Subject: [PATCH] some structural changes --- test3.c | 41 --------------------------------- test2.c => tests/crypt_test.c | 0 test.c => tests/decrypt_test.c | 0 test4.c => tests/dyntype_test.c | 0 4 files changed, 41 deletions(-) delete mode 100644 test3.c rename test2.c => tests/crypt_test.c (100%) rename test.c => tests/decrypt_test.c (100%) rename test4.c => tests/dyntype_test.c (100%) diff --git a/test3.c b/test3.c deleted file mode 100644 index 30e5fee..0000000 --- a/test3.c +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include - -#include "bigpoint_cclass.h" -#include "bigpoint_dyntype.h" - - -int -main(int argc, char * argv[]) -{ - char string[] = "ein weiterer test"; - int integer = 42; - float floating = 4.3; - - char * rstring = NULL; - long rint = 0; - double rfloat = 0.0; - - struct BIGPOINT_DYNTYPE * dynstring = - new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_STRING, strlen(string) + 1, string); - struct BIGPOINT_DYNTYPE * dynint = - new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(long), (long)integer); - struct BIGPOINT_DYNTYPE * dynfloat = - new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_FLOAT, sizeof(double), (double)floating); - - bigpoint_dyntype_get(dynstring, rstring); - bigpoint_dyntype_get(dynint, rint); - bigpoint_dyntype_get(dynfloat, rfloat); - - printf("%s\n", rstring); - printf("%ld\n", rint); - printf("%lf\n", rfloat); - - delete(dynstring); - delete(dynint); - delete(dynfloat); - - return 0; -} - -// vim: set et ts=4 sw=4: diff --git a/test2.c b/tests/crypt_test.c similarity index 100% rename from test2.c rename to tests/crypt_test.c diff --git a/test.c b/tests/decrypt_test.c similarity index 100% rename from test.c rename to tests/decrypt_test.c diff --git a/test4.c b/tests/dyntype_test.c similarity index 100% rename from test4.c rename to tests/dyntype_test.c