|
3 | 3 | * Licensed under the MIT License. See License.txt in the project root for license information. |
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | 5 | import * as assert from 'assert'; |
6 | | -import { dirname, basename, distinctParents, joinPath, isEqual, isEqualOrParent, normalizePath, isAbsolutePath, relativePath, removeTrailingPathSeparator, hasTrailingPathSeparator, resolvePath, addTrailingPathSeparator, getComparisonKey } from 'vs/base/common/resources'; |
| 6 | +import { dirname, basename, distinctParents, joinPath, isEqual, isEqualOrParent, normalizePath, isAbsolutePath, relativePath, removeTrailingPathSeparator, hasTrailingPathSeparator, resolvePath, addTrailingPathSeparator, getComparisonKey, compare } from 'vs/base/common/resources'; |
7 | 7 | import { URI } from 'vs/base/common/uri'; |
8 | 8 | import { isWindows } from 'vs/base/common/platform'; |
9 | 9 | import { toSlashes } from 'vs/base/common/extpath'; |
@@ -348,6 +348,7 @@ suite('Resources', () => { |
348 | 348 |
|
349 | 349 | function assertIsEqual(u1: URI, u2: URI, ignoreCase: boolean | undefined, expected: boolean) { |
350 | 350 | assert.equal(isEqual(u1, u2, ignoreCase), expected, `${u1.toString()}${expected ? '===' : '!=='}${u2.toString()}`); |
| 351 | + assert.equal(compare(u1, u2, ignoreCase) === 0, expected); |
351 | 352 | assert.equal(getComparisonKey(u1, ignoreCase) === getComparisonKey(u2, ignoreCase), expected, `comparison keys ${u1.toString()}, ${u2.toString()}`); |
352 | 353 | assert.equal(isEqualOrParent(u1, u2, ignoreCase), expected, `isEqualOrParent ${u1.toString()}, ${u2.toString()}`); |
353 | 354 | } |
|
0 commit comments