26#include "lib/res/file/path.h"
42 TS_ASSERT_OK(file_make_portable_path(
"a\\b\\c", P_path));
58 const char* atom1 = path_Pool->UniqueCopy(
"a/bc/def");
59 const char* atom2 = path_Pool->UniqueCopy(
"a/bc/def");
60 TS_ASSERT_EQUALS(atom1, atom2);
63 const char* atom3 = path_Pool->UniqueCopy(atom1);
64 TS_ASSERT_EQUALS(atom3, atom1);
67 TS_ASSERT(path_Pool()->Contains(atom1));
73 for(tries_left = 1000; tries_left != 0; tries_left--)
75 const char* random_name = path_Pool->RandomString();
76 if(random_name == atom1)
79 TS_ASSERT(tries_left != 0);
Definition: test_path.h:29
void test_conversion()
Definition: test_path.h:31
void test_pool()
Definition: test_path.h:55
#define TS_ASSERT_OK(expr)
Definition: self_test.h:127
#define TS_ASSERT_STR_EQUALS(str1, str2)
Definition: self_test.h:129
#define PATH_MAX
Definition: wposix_types.h:101