18#if defined(OS_WIN) || defined(OS_MINGW)
20#elif defined(OS_MACOS)
38#if defined(OS_WIN) || defined(OS_MINGW)
46#if defined(OS_LINUX) || defined(OS_MACOS) || defined(OS_WASM)
80#if defined(OS_MINGW) || defined(OS_WIN)
123#if defined(OS_MINGW) || defined(OS_WIN)
272 const char*
s2 =
"hello world";
290TEST_CASE (
"load_string from 3 local files and check exception") {
309 url_unix (
"tests/Kernel/Containers:tests/Kernel/Types",
"list_test.cpp");
315#if defined(OS_MINGW) || defined(OS_WIN)
316TEST_CASE (
"load_string from read only file") {
324#if defined(OS_LINUX) || defined(OS_MACOS)
325TEST_CASE (
"load_string from read only file") {
374 file,
reinterpret_cast<const tb_uint8_t*
> (
"longer text for test"), 20);
388 string s1 (
"file not exist");
399 string s1 (
"file empty");
412 SUBCASE (
"test file not empty") {
417 string s2 (
"file not empty");
427 SUBCASE (
"test file include unicode") {
432 string s2 (
"unicode文件");
int N(array< T > a)
Get the length of the array.
int copy(int x)
Returns a copy of an integer.
The list class represents a linked list.
bool load_string(url u, string &s, bool fatal)
url url_temp(string suffix)
bool is_newer(url which, url than)
url subdirectories(url u)
void move(url u1, url u2)
bool append_string(url u, const string &s, bool fatal)
bool is_symbolic_link(url u)
bool save_string(url u, const string &s, bool fatal)
bool is_of_type(url name, string filter)
array< string > read_directory(url u, bool &error_flag)
void remove_if_exist(const url &u1)
url url_unix(string name)
list< T > remove(list< T > l, T what)
Create a new list with a specific item removed.
#define TEST_MEMORY_LEAK_RESET
void url_eq(url left, url right)
#define TM_CHECK_THROWS(statements)
#define TEST_MEMORY_LEAK_INIT
#define TEST_MEMORY_LEAK_ALL
void string_eq(string left, string right)
TEST_CASE("test for operator+= and advance()")
string as_string(int16_t i)
url url_system(string name)
url reroot(url u, string protocol)