test: add and update a few tests

This commit is contained in:
2025-09-22 10:55:20 +01:00
parent 11fd147031
commit b4360e9bdc
6 changed files with 337 additions and 1 deletions

28
serial-test/toml-encode.c Normal file
View File

@@ -0,0 +1,28 @@
#include <blue/object/object.h>
#include <blue/serial.h>
int main(void)
{
b_stream *src = b_stdin;
b_stream *dest = b_stdout;
#if 0
b_serial_ctx *ctx;
b_serial_ctx_create(&ctx);
b_object *data;
b_status status = b_serial_ctx_deserialise(
ctx, B_SERIAL_FORMAT_JSON, src, &data, 0);
if (!B_OK(status)) {
return -1;
}
b_to_string(B_OBJECT(data), dest);
b_stream_write_char(b_stdout, '\n');
b_release(data);
b_serial_ctx_destroy(ctx);
#endif
return 0;
}