test: io: update to use new object system
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <CuTest.h>
|
||||
#include <blue/core/stringstream.h>
|
||||
#include <blue/io/path.h>
|
||||
#include <blue/ds/object.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void test_path_1(CuTest *tc)
|
||||
@@ -11,7 +10,7 @@ void test_path_1(CuTest *tc)
|
||||
b_stringstream str;
|
||||
b_stringstream_begin(&str, buf, sizeof buf);
|
||||
|
||||
b_to_string(B_DSREF(path), (b_stream *)&str);
|
||||
b_object_to_string(path, (b_stream *)&str);
|
||||
|
||||
printf("%s\n", buf);
|
||||
|
||||
@@ -23,7 +22,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_DSREF(path4), (b_stream *)&str);
|
||||
b_object_to_string(path4, (b_stream *)&str);
|
||||
printf("%s\n", buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user