From 8c0e87f9c333f3519b6d6439099f669a316ed598 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 20 Oct 2010 13:03:39 -0700 Subject: [PATCH] Add some failing tests for path.join --- test/simple/test-path.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/simple/test-path.js b/test/simple/test-path.js index 6570732ab3..a9ca1f127c 100644 --- a/test/simple/test-path.js +++ b/test/simple/test-path.js @@ -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");