test: update tests

This commit is contained in:
2025-10-28 15:21:19 +00:00
parent 2d29713f57
commit 6639a84a78
9 changed files with 63 additions and 96 deletions

View File

@@ -203,12 +203,10 @@ int main(void)
b_stream *src = b_stdin;
b_stream *dest = b_stdout;
b_serial_ctx *ctx;
b_serial_ctx_create(&ctx);
b_serial_ctx *ctx = b_toml_serial_ctx_create();
b_object *data;
b_status status = b_serial_ctx_deserialise(
ctx, B_SERIAL_FORMAT_TOML, src, &data, 0);
b_status status = b_serial_ctx_deserialise(ctx, src, &data, 0);
if (!B_OK(status)) {
return 1;
}
@@ -217,7 +215,7 @@ int main(void)
b_stream_write_char(b_stdout, '\n');
b_serial_ctx_destroy(ctx);
b_serial_ctx_unref(ctx);
b_object_unref(data);
return 0;