File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -513,10 +513,13 @@ PYSTRING_ADD_TEST(pystring, translate)
513513
514514PYSTRING_ADD_TEST (pystring, abspath)
515515{
516- PYSTRING_CHECK_EQUAL (pystring::os::path::abspath (" " , " /net" ), " /net" );
517- PYSTRING_CHECK_EQUAL (pystring::os::path::abspath (" ../jeremys" , " /net/soft_scratch/users/stevel" ), " /net/soft_scratch/users/jeremys" );
518- PYSTRING_CHECK_EQUAL (pystring::os::path::abspath (" ../../../../tmp/a" , " /net/soft_scratch/users/stevel" ), " /tmp/a" );
516+ PYSTRING_CHECK_EQUAL (pystring::os::path::abspath_posix (" " , " /net" ), " /net" );
517+ PYSTRING_CHECK_EQUAL (pystring::os::path::abspath_posix (" ../jeremys" , " /net/soft_scratch/users/stevel" ), " /net/soft_scratch/users/jeremys" );
518+ PYSTRING_CHECK_EQUAL (pystring::os::path::abspath_posix (" ../../../../tmp/a" , " /net/soft_scratch/users/stevel" ), " /tmp/a" );
519519
520+ PYSTRING_CHECK_EQUAL (pystring::os::path::abspath_nt (" " , " c:\\ net" ), " c:\\ net" );
521+ PYSTRING_CHECK_EQUAL (pystring::os::path::abspath_nt (" ..\\ jeremys" , " c:\\ net\\ soft_scratch\\ users\\ stevel" ), " c:\\ net\\ soft_scratch\\ users\\ jeremys" );
522+ PYSTRING_CHECK_EQUAL (pystring::os::path::abspath_nt (" ..\\ ..\\ ..\\ ..\\ tmp\\ a" , " c:\\ net\\ soft_scratch\\ users\\ stevel" ), " c:\\ tmp\\ a" );
520523}
521524
522525PYSTRING_ADD_TEST (pystring_os_path, splitdrive)
You can’t perform that action at this time.
0 commit comments