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:
Richard Frith-MacDonald 2011-02-22 07:05:36 +00:00
parent ee2bbe4f71
commit 38670c0a08
5 changed files with 114 additions and 59 deletions

View file

@ -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:\\...'");