test: add tests about math dot completion (#1021)

This commit is contained in:
Myriad-Dreamin 2024-12-18 15:53:54 +08:00 committed by GitHub
parent 0f512dd09e
commit 902bd17cba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,4 @@
/// contains: b
// @typstyle off
$ arrow./* range 0..1 */ $

View file

@ -0,0 +1,34 @@
---
source: crates/tinymist-query/src/completion.rs
description: Completion on / (42..43)
expression: "JsonRepr::new_pure(results)"
input_file: crates/tinymist-query/src/fixtures/completion/field_math_dot.typ
snapshot_kind: text
---
[
{
"isIncomplete": false,
"items": [
{
"kind": 5,
"label": "b",
"labelDetails": {
"description": "↓"
},
"textEdit": {
"newText": "b",
"range": {
"end": {
"character": 8,
"line": 3
},
"start": {
"character": 8,
"line": 3
}
}
}
}
]
}
]