From c9d049fc25c54d80a31bc6beee21caff5f5b93bf Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Tue, 11 Nov 2025 02:02:16 -0500 Subject: [PATCH] update: update the test --- src/test.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/test.c b/src/test.c index f3346cd..8e8e216 100644 --- a/src/test.c +++ b/src/test.c @@ -1,9 +1,22 @@ #include "common.h" #include "init.h" +#include int main(){ - //init(15.0, 1e-1); - chi(bmin); + int size; + double *x = NULL; + double *y = NULL; + init(15.0, 1e-1, &size, &x, &y); + printf("Done!\n"); + printf("Sample size: %d\n", size); + printf("x: %p\n", x); + printf("y: %p\n", y); + for (int i = 0; i < size; i++){ + printf("%g %g\n", x[i], y[i]); + } + //chi(bmin); + free(x); + free(y); return 0; }