test: add lots of stream tests

This commit is contained in:
2025-06-27 21:54:10 +01:00
parent c987f34693
commit 86d5b9d31d
4 changed files with 57 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ void test_path_1(CuTest *tc)
b_stringstream str;
b_stringstream_begin(&str, buf, sizeof buf);
b_to_string(B_OBJECT(path), &str);
b_to_string(B_OBJECT(path), (b_stream *)&str);
printf("%s\n", buf);
@@ -23,7 +23,7 @@ void test_path_1(CuTest *tc)
b_path *path4 = b_path_join(paths, sizeof paths / sizeof paths[0]);
b_stringstream_begin(&str, buf, sizeof buf);
b_to_string(B_OBJECT(path4), &str);
b_to_string(B_OBJECT(path4), (b_stream *)&str);
printf("%s\n", buf);
}