fx.collections: update tests

This commit is contained in:
2026-05-25 17:29:56 +01:00
parent 2df76a76c4
commit 0be82c63fa
2 changed files with 3 additions and 8 deletions
+1 -6
View File
@@ -1,12 +1,7 @@
#include <fx/double.h>
#include <fx/float.h>
#include <stdio.h>
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;
}
+2 -2
View File
@@ -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;