32#if defined(OS_MINGW) || defined(OS_WIN)
35#if defined(OS_MACOS) || defined(OS_LINUX) || defined(OS_WASM)
36 SUBCASE (
"on host macos/linux/wasm") {
65#if defined(OS_MINGW) || defined(OS_WIN)
70#if defined(OS_MACOS) || defined(OS_LINUX) || defined(OS_WASM)
71 SUBCASE (
"on host macos/linux/wasm") {
79#if defined(OS_MINGW) || defined(OS_WIN)
81 set_env (
"TEST_ENV",
"System;Plugins;Kernel");
86#if defined(OS_MACOS) || defined(OS_LINUX) || defined(OS_WASM)
87 SUBCASE (
"on macos/linux/wasm") {
88 set_env (
"TEST_ENV",
"System:Plugins:Kernel");
116#if defined(OS_MACOS) || defined(OS_LINUX)
127#if defined(OS_MACOS) || defined(OS_LINUX) || defined(OS_WASM)
128TEST_CASE (
"is_concat on unix and wasm") {
160 url png=
url (
"https://name.com/path/to.png");
164 url jpg=
url (
"https://name.org/path/to.jpg");
169 SUBCASE (
"http url with paramters") {
170 url jpg=
url (
"https://name.cn/path/to.jpg?width=100");
190 SUBCASE (
"tree with empty string") {
195#if defined(OS_MINGW) || defined(OS_WIN)
205#if defined(OS_MACOS) || defined(OS_LINUX) || defined(OS_WASM)
206 SUBCASE (
"on linux/macos/wasm") {
229 SUBCASE (
"on macOS/Linux/wasm") {
247 SUBCASE (
"on macOS/Linux/wasm") {
290 SUBCASE (
"u is concat, base is atomic") {
295 SUBCASE (
"u is concat, base is concat") {
301 SUBCASE (
"u or base is url_or") {
The list class represents a linked list.
url url_unix(string name)
void url_eq(url left, url right)
#define TEST_MEMORY_LEAK_INIT
#define TEST_MEMORY_LEAK_ALL
void string_eq(string left, string right)
void url_neq(url left, url right)
void string_neq(string left, string right)
TEST_CASE("test for operator+= and advance()")
string as_string(int16_t i)
void set_env(string var, string with)
string suffix(url u, bool use_locase)
url url_system(string name)
string basename(url u, string suf)
url url_root(string protocol)
url relative(url base, url u)
url reroot(url u, string protocol)
bool descends(url u, url base)
url delta(url base, url u)
static url expand(url u1, url u2)
bool is_root(url u, string s)