From 0be82c63fa1ec1b993cd1bebd9e0fd739ddc6915 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 25 May 2026 17:29:56 +0100 Subject: [PATCH] fx.collections: update tests --- fx.collections/test/numbers.c | 7 +------ fx.collections/test/simple.c | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/fx.collections/test/numbers.c b/fx.collections/test/numbers.c index c26b655..6b57f3b 100644 --- a/fx.collections/test/numbers.c +++ b/fx.collections/test/numbers.c @@ -1,12 +1,7 @@ -#include +#include #include int main(void) { - fx_double *d = fx_double_create(6.8); - - printf("double=%lf\n", fx_double_get_value(d)); - fx_double_unref(d); - return 0; } diff --git a/fx.collections/test/simple.c b/fx.collections/test/simple.c index e001aa5..21bc4b0 100644 --- a/fx.collections/test/simple.c +++ b/fx.collections/test/simple.c @@ -2,9 +2,9 @@ int main(void) { - fx_string *string = FX_CSTR("Hello, world!"); + fx_string *string = fx_string_create_from_cstr("Hello, world!"); printf("string object = "); - fx_object_to_string(string, fx_stdout); + fx_object_to_string(string, fx_stdout, NULL); printf("\n"); fx_string_unref(string); return 0;