Skip to content

Commit

Permalink
test: add tests for microsoft#113403
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoboGu committed Jan 5, 2021
1 parent c907b8f commit 6c95b04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/base/test/common/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,11 @@ suite('Filters', () => {
assert.ok(Boolean(match));
});

test('Wrong highlight after emoji #113403', function () {
assertMatches('di', '⭐div classname=""></div>', '⭐^d^iv classname=""></div>', fuzzyScore);
assertMatches('di', 'adiv classname=""></div>', 'adiv classname=""></^d^iv>', fuzzyScore);
});

test('Suggestion is not highlighted #85826', function () {
assertMatches('SemanticTokens', 'SemanticTokensEdits', '^S^e^m^a^n^t^i^c^T^o^k^e^n^sEdits', fuzzyScore);
assertMatches('SemanticTokens', 'SemanticTokensEdits', '^S^e^m^a^n^t^i^c^T^o^k^e^n^sEdits', fuzzyScoreGracefulAggressive);
Expand Down

0 comments on commit 6c95b04

Please sign in to comment.