mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add test for appending component to a an http URL without a path
This commit is contained in:
parent
dae9b8973e
commit
562414810e
1 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,10 @@ int main()
|
|||
PASS_EQUAL([url resourceSpecifier], @"//www.w3.org",
|
||||
"resourceSpecifier of http://www.w3.org is //www.w3.org");
|
||||
|
||||
url = [url URLByAppendingPathComponent: @"example_path"];
|
||||
PASS_EQUAL([url description], @"http://www.w3.org/example_path",
|
||||
"Append of component to pathless http URL works");
|
||||
|
||||
#if defined(_WIN32)
|
||||
url = [NSURL fileURLWithPath: @"C:\\WINDOWS"];
|
||||
str = [url path];
|
||||
|
|
Loading…
Reference in a new issue