mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 91e99652cd5fcfc072387c64e151b435e39e8dcf (#6962)
This commit is contained in:
@@ -389,6 +389,11 @@ suite('Filters', () => {
|
||||
assertMatches('g', 'zzGroup', 'zz^Group', fuzzyScore);
|
||||
});
|
||||
|
||||
test('patternPos isn\'t working correctly #79815', function () {
|
||||
assertMatches(':p'.substr(1), 'prop', '^prop', fuzzyScore, { patternPos: 0 });
|
||||
assertMatches(':p', 'prop', '^prop', fuzzyScore, { patternPos: 1 });
|
||||
});
|
||||
|
||||
function assertTopScore(filter: typeof fuzzyScore, pattern: string, expected: number, ...words: string[]) {
|
||||
let topScore = -(100 * 10);
|
||||
let topIdx = 0;
|
||||
|
||||
Reference in New Issue
Block a user