From d9ab964ff980d495c8960a728fb082f006b6a1e6 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 14 Nov 2013 15:36:03 +0100 Subject: [PATCH] Added missing test with leading backslash --- tests/lib/files/filesystem.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php index e703a961299..7cb57bf95ad 100644 --- a/tests/lib/files/filesystem.php +++ b/tests/lib/files/filesystem.php @@ -107,6 +107,8 @@ class Filesystem extends \PHPUnit_Framework_TestCase { $this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\', false)); $this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\')); $this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\', false)); + $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path')); + $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path', false)); $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path\\')); $this->assertEquals('/path/', \OC\Files\Filesystem::normalizePath('\\path\\', false)); $this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('\\foo\\\\bar\\')); -- 2.39.5