Skip to content

Add tests for hover off-by-one and NaN QUAL fixes#4

Merged
zhemingfan merged 1 commit intomainfrom
fix/hover-qual-bug-tests
Mar 9, 2026
Merged

Add tests for hover off-by-one and NaN QUAL fixes#4
zhemingfan merged 1 commit intomainfrom
fix/hover-qual-bug-tests

Conversation

@zhemingfan
Copy link
Copy Markdown
Owner

  • vcf-hover.test.ts: 15 new tests for getWordRangeAtPosition covering cursor inside a word, at the boundary (regression case), between words, and edge cases (empty line, only separators, single-char words, underscores)
  • vcf-preview-features.test.ts: 6 new QUAL tests covering numeric, zero, missing dot, non-numeric string (NaN fix regression), empty string, and float; inline parseVcfLine updated to match the NaN-safe implementation

- vcf-hover.test.ts: 15 new tests for getWordRangeAtPosition covering
  cursor inside a word, at the boundary (regression case), between words,
  and edge cases (empty line, only separators, single-char words,
  underscores)
- vcf-preview-features.test.ts: 6 new QUAL tests covering numeric, zero,
  missing dot, non-numeric string (NaN fix regression), empty string, and
  float; inline parseVcfLine updated to match the NaN-safe implementation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zhemingfan zhemingfan merged commit 6b330d1 into main Mar 9, 2026
1 check passed
@zhemingfan zhemingfan deleted the fix/hover-qual-bug-tests branch March 9, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant