meta: rename to fx
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
#include <CuTest.h>
|
||||
#include <blue/core/stringstream.h>
|
||||
#include <blue/io/path.h>
|
||||
#include <fx/core/stringstream.h>
|
||||
#include <fx/io/path.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void test_path_1(CuTest *tc)
|
||||
{
|
||||
b_path *path = b_path_create_from_cstr("C:\\hello\\world\\");
|
||||
fx_path *path = fx_path_create_from_cstr("C:\\hello\\world\\");
|
||||
char buf[512];
|
||||
b_stringstream *str = b_stringstream_create_with_buffer(buf, sizeof buf);
|
||||
fx_stringstream *str = fx_stringstream_create_with_buffer(buf, sizeof buf);
|
||||
|
||||
b_object_to_string(path, str);
|
||||
fx_object_to_string(path, str);
|
||||
|
||||
printf("%s\n", buf);
|
||||
|
||||
b_path *path2 = b_path_create_from_cstr("path1\\path2\\");
|
||||
b_path *path3 = b_path_create_from_cstr("path3\\path4\\");
|
||||
fx_path *path2 = fx_path_create_from_cstr("path1\\path2\\");
|
||||
fx_path *path3 = fx_path_create_from_cstr("path3\\path4\\");
|
||||
|
||||
const b_path *paths[] = {path, path2, path3};
|
||||
const fx_path *paths[] = {path, path2, path3};
|
||||
|
||||
b_path *path4 = b_path_join(paths, sizeof paths / sizeof paths[0]);
|
||||
fx_path *path4 = fx_path_join(paths, sizeof paths / sizeof paths[0]);
|
||||
|
||||
b_stringstream_reset_with_buffer(str, buf, sizeof buf);
|
||||
b_object_to_string(path4, str);
|
||||
fx_stringstream_reset_with_buffer(str, buf, sizeof buf);
|
||||
fx_object_to_string(path4, str);
|
||||
printf("%s\n", buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user