Move path utils to os, fix bugs with it and write tests

This commit is contained in:
2024-10-06 19:28:34 +01:00
parent 4af4b39d6f
commit 22ece7215a
5 changed files with 227 additions and 35 deletions

18
tests/cpath/test_cpath.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef TEST_CPATH_H
#define TEST_CPATH_H
#include "tester.h"
#ifdef __cplusplus
BEGIN_C_LINKAGE
#endif // __cplusplus
TestFuncResult test_cpath_join_path(void);
TestFuncResult test_cpath_dirname(void);
TestFuncResult test_cpath_dirup(void);
#ifdef __cplusplus
END_C_LINKAGE
#endif // __cplusplus
#endif // !TEST_CPATH_H