From 7fc6645982855ced40bf4af4b002a30b30510ac0 Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Fri, 26 Feb 2016 15:58:08 -0500 Subject: [PATCH] test: add test-cases for posix path.relative() adds posix test cases for paths similar to those that caused #5447 PR-URL: https://github.com/nodejs/node/pull/5456 Reviewed-By: Brian White Reviewed-By: Roman Reiss --- test/parallel/test-path.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-path.js b/test/parallel/test-path.js index 3ec2e905f5841d..c7854bc8d9d08b 100644 --- a/test/parallel/test-path.js +++ b/test/parallel/test-path.js @@ -488,7 +488,9 @@ const relativeTests = [ ['/var/', '/var/lib', 'lib'], ['/', '/var/lib', 'var/lib'], ['/foo/test', '/foo/test/bar/package.json', 'bar/package.json'], - ['/Users/a/web/b/test/mails', '/Users/a/web/b', '../..'] + ['/Users/a/web/b/test/mails', '/Users/a/web/b', '../..'], + ['/foo/bar/baz-quux', '/foo/bar/baz', '../baz'], + ['/foo/bar/baz', '/foo/bar/baz-quux', '../baz-quux'] ] ] ];