mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
OSX compatibility changes and other minor tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32279 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ee2bbe4f71
commit
38670c0a08
5 changed files with 114 additions and 59 deletions
|
@ -137,13 +137,13 @@ int main()
|
|||
|
||||
// Not UNC
|
||||
PASS_EQUAL([@"///host/share/" stringByDeletingLastPathComponent],
|
||||
@"///host",
|
||||
"'///host/share/' stringByDeletingLastPathComponent == '///host'");
|
||||
@"/host",
|
||||
"'///host/share/' stringByDeletingLastPathComponent == '/host'");
|
||||
|
||||
// Not UNC
|
||||
PASS_EQUAL([@"//host/share" stringByDeletingLastPathComponent],
|
||||
@"//host",
|
||||
"'//host/share' stringByDeletingLastPathComponent == '//host'");
|
||||
@"/host",
|
||||
"'//host/share' stringByDeletingLastPathComponent == '/host'");
|
||||
|
||||
// Not UNC
|
||||
PASS_EQUAL([@"//dir/" stringByDeletingLastPathComponent],
|
||||
|
@ -215,8 +215,8 @@ int main()
|
|||
@"\\\\home\\user\\",
|
||||
"\\\\home\\user\\ stringByStandardizingPath == \\\\home\\user\\");
|
||||
|
||||
PASS_EQUAL([@"c:\\." stringByStandardizingPath], @"c:\\",
|
||||
"'c:\\.' stringByStandardizingPath == 'c:\\'");
|
||||
PASS_EQUAL([@"c:\\." stringByStandardizingPath], @"c:\\.",
|
||||
"'c:\\.' stringByStandardizingPath == 'c:\\.'");
|
||||
|
||||
PASS_EQUAL([@"c:\\..." stringByStandardizingPath], @"c:\\...",
|
||||
"'c:\\...' stringByStandardizingPath == 'c:\\...'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue