fx.collections: update tests
This commit is contained in:
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user