feat: add streamd lsp subcommand with LSP server #90
1 changed files with 6 additions and 4 deletions
|
|
@ -1048,13 +1048,15 @@ mod tests {
|
|||
assert!(items
|
||||
.iter()
|
||||
.any(|i| i.kind == Some(CompletionItemKind::VALUE)
|
||||
&& i.insert_text.as_deref().map_or(false, |t| t.len() == 8
|
||||
&& t.chars().all(|c| c.is_ascii_digit()))));
|
||||
&& i.insert_text
|
||||
.as_deref()
|
||||
.is_some_and(|t| t.len() == 8 && t.chars().all(|c| c.is_ascii_digit()))));
|
||||
assert!(items
|
||||
.iter()
|
||||
.any(|i| i.kind == Some(CompletionItemKind::VALUE)
|
||||
&& i.insert_text.as_deref().map_or(false, |t| t.len() == 6
|
||||
&& t.chars().all(|c| c.is_ascii_digit()))));
|
||||
&& i.insert_text
|
||||
.as_deref()
|
||||
.is_some_and(|t| t.len() == 6 && t.chars().all(|c| c.is_ascii_digit()))));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue