mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Path standardisation tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32328 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c11dbf7f6a
commit
9550a5415b
2 changed files with 18 additions and 17 deletions
|
@ -250,6 +250,14 @@ int main()
|
|||
PASS_EQUAL([@"/home/../nicola" stringByStandardizingPath], @"/nicola",
|
||||
"/home/../nicola stringByStandardizingPath == /nicola");
|
||||
|
||||
PASS_EQUAL([@"/here/and/there/../../nicola" stringByStandardizingPath],
|
||||
@"/here/nicola",
|
||||
"/here/and/there/../../nicola stringByStandardizingPath == /here/nicola");
|
||||
|
||||
PASS_EQUAL([@"/here/../../nicola" stringByStandardizingPath],
|
||||
@"/nicola",
|
||||
"/here/../../nicola stringByStandardizingPath == /nicola");
|
||||
|
||||
PASS_EQUAL([@"home/../nicola" stringByStandardizingPath], @"home/../nicola",
|
||||
"home/../nicola stringByStandardizingPath == home/../nicola");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue