paths are hard, #33709

This commit is contained in:
Johannes Rieken
2017-09-08 16:34:22 +02:00
parent f8826e60fe
commit 52fe2ace58
@@ -15,7 +15,11 @@ suite('ExtHostWorkspace', function () {
function assertAsRelativePath(workspace: ExtHostWorkspace, input: string, expected: string, includeWorkspace?: boolean) {
const actual = workspace.getRelativePath(input, includeWorkspace);
assert.equal(actual, expected && normalize(expected, true));
if (actual === expected) {
assert.ok(true);
} else {
assert.equal(actual, normalize(expected, true));
}
}
test('asRelativePath', function () {