1'use strict'; 2 3require('../common'); 4const assert = require('assert'); 5const path = require('path'); 6 7// Refs: https://github.com/nodejs/node/issues/13683 8 9const relativePath = path.posix.relative('a/b/c', '../../x'); 10assert.match(relativePath, /^(\.\.\/){3,5}x$/); 11