Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Add some failing tests for path.join
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 20, 2010
1 parent bd8e4f6 commit 8c0e87f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/simple/test-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ assert.equal(path.extname("file."), ".");

assert.equal(path.join(".", "fixtures/b", "..", "/b/c.js"), "fixtures/b/c.js");
assert.equal(path.join("/foo", "../../../bar"), "/bar");
assert.equal(path.join('./'), '.');
assert.equal(path.join('.'), '.');
assert.equal(path.join('', 'foo'), 'foo');
assert.equal(path.join('foo', '/bar'), 'foo/bar');

assert.equal(path.normalize("./fixtures///b/../b/c.js"), "fixtures/b/c.js");
assert.equal(path.normalize("./fixtures///b/../b/c.js",true), "fixtures///b/c.js");
Expand Down

0 comments on commit 8c0e87f

Please sign in to comment.