summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-02-03 20:13:11 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-02-03 20:13:11 +0100
commit23024b973b2d1ca3e0c16e739e51c8211ee824eb (patch)
treeccdc4336fc464c6480f5baa3b8588d4f5547c72b /_test
parentaf82c959e06a2f3b96f8ffb3e22d1ac08d8ad3d0 (diff)
downloadrpg-23024b973b2d1ca3e0c16e739e51c8211ee824eb.tar.gz
rpg-23024b973b2d1ca3e0c16e739e51c8211ee824eb.tar.bz2
Some more Unit Tests
Ignore-this: 75cdd558fc40a114961d2fca76e0bcdd darcs-hash:20090203191311-7ad00-bd6b96193f188afb5f26b6ca781dd5ea9eb8f0ef.gz
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/init_fullpath.test.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/_test/cases/inc/init_fullpath.test.php b/_test/cases/inc/init_fullpath.test.php
index e2acc35a5..944d6bd02 100644
--- a/_test/cases/inc/init_fullpath.test.php
+++ b/_test/cases/inc/init_fullpath.test.php
@@ -51,6 +51,20 @@ class init_fullpath_test extends UnitTestCase {
'c:foo/bar/..' => 'c:foo',
'c:foo/bar/../../../baz' => 'c:baz',
+ 'c:/foo/bar/baz' => 'c:foo/bar/baz',
+ 'c:/foo//bar/baz' => 'c:foo/bar/baz',
+ 'c:/foo/../bar/baz' => 'c:bar/baz',
+ 'c:/foo/./bar/baz' => 'c:foo/bar/baz',
+ 'c:/foo/bar/..' => 'c:foo',
+ 'c:/foo/bar/../../../baz' => 'c:baz',
+
+ 'c:\\foo\\bar\\baz' => 'c:foo/bar/baz',
+ 'c:\\foo\\\\bar\\baz' => 'c:foo/bar/baz',
+ 'c:\\foo\\..\\bar\\baz' => 'c:bar/baz',
+ 'c:\\foo\\.\\bar\\baz' => 'c:foo/bar/baz',
+ 'c:\\foo\\bar\\..' => 'c:foo',
+ 'c:\\foo\\bar\\..\\..\\..\\baz' => 'c:baz',
+
'\\\\server\\share/foo/bar/baz' => '\\\\server\\share/foo/bar/baz',
'\\\\server\\share/foo//bar/baz' => '\\\\server\\share/foo/bar/baz',
'\\\\server\\share/foo/../bar/baz' => '\\\\server\\share/bar/baz',