Windows: add test for path.normalize with UNC paths

pull/24503/head
Bert Belder 2012-05-13 03:29:44 +02:00
parent d91004a73d
commit a475e62a3e
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ if (isWindows) {
assert.equal(path.normalize('a//b//../b'), 'a\\b'); assert.equal(path.normalize('a//b//../b'), 'a\\b');
assert.equal(path.normalize('a//b//./c'), 'a\\b\\c'); assert.equal(path.normalize('a//b//./c'), 'a\\b\\c');
assert.equal(path.normalize('a//b//.'), 'a\\b'); assert.equal(path.normalize('a//b//.'), 'a\\b');
assert.equal(path.normalize('//server/share/dir/file.ext'),
'\\\\server\\share\\dir\\file.ext');
} else { } else {
assert.equal(path.normalize('./fixtures///b/../b/c.js'), assert.equal(path.normalize('./fixtures///b/../b/c.js'),
'fixtures/b/c.js'); 'fixtures/b/c.js');