@@ -21,18 +21,21 @@ assert.strictEqual(path.win32.dirname('c:\\foo\\'), 'c:\\');
21
21
assert . strictEqual ( path . win32 . dirname ( 'c:\\foo\\bar' ) , 'c:\\foo' ) ;
22
22
assert . strictEqual ( path . win32 . dirname ( 'c:\\foo\\bar\\' ) , 'c:\\foo' ) ;
23
23
assert . strictEqual ( path . win32 . dirname ( 'c:\\foo\\bar\\baz' ) , 'c:\\foo\\bar' ) ;
24
+ assert . strictEqual ( path . win32 . dirname ( 'c:\\foo bar\\baz' ) , 'c:\\foo bar' ) ;
24
25
assert . strictEqual ( path . win32 . dirname ( '\\' ) , '\\' ) ;
25
26
assert . strictEqual ( path . win32 . dirname ( '\\foo' ) , '\\' ) ;
26
27
assert . strictEqual ( path . win32 . dirname ( '\\foo\\' ) , '\\' ) ;
27
28
assert . strictEqual ( path . win32 . dirname ( '\\foo\\bar' ) , '\\foo' ) ;
28
29
assert . strictEqual ( path . win32 . dirname ( '\\foo\\bar\\' ) , '\\foo' ) ;
29
30
assert . strictEqual ( path . win32 . dirname ( '\\foo\\bar\\baz' ) , '\\foo\\bar' ) ;
31
+ assert . strictEqual ( path . win32 . dirname ( '\\foo bar\\baz' ) , '\\foo bar' ) ;
30
32
assert . strictEqual ( path . win32 . dirname ( 'c:' ) , 'c:' ) ;
31
33
assert . strictEqual ( path . win32 . dirname ( 'c:foo' ) , 'c:' ) ;
32
34
assert . strictEqual ( path . win32 . dirname ( 'c:foo\\' ) , 'c:' ) ;
33
35
assert . strictEqual ( path . win32 . dirname ( 'c:foo\\bar' ) , 'c:foo' ) ;
34
36
assert . strictEqual ( path . win32 . dirname ( 'c:foo\\bar\\' ) , 'c:foo' ) ;
35
37
assert . strictEqual ( path . win32 . dirname ( 'c:foo\\bar\\baz' ) , 'c:foo\\bar' ) ;
38
+ assert . strictEqual ( path . win32 . dirname ( 'c:foo bar\\baz' ) , 'c:foo bar' ) ;
36
39
assert . strictEqual ( path . win32 . dirname ( 'file:stream' ) , '.' ) ;
37
40
assert . strictEqual ( path . win32 . dirname ( 'dir\\file:stream' ) , 'dir' ) ;
38
41
assert . strictEqual ( path . win32 . dirname ( '\\\\unc\\share' ) ,
0 commit comments