blob: cbefafd27b655571ec54293adf4367274121c86b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
pub mod support;
use lsp_types::*;
use support::hover::*;
const SCENARIO: &str = "latex/citation";
#[tokio::test]
async fn valid() {
let contents = run(SCENARIO, "foo.tex", 2, 7).await.unwrap();
assert_eq!(
contents,
HoverContents::Markup(MarkupContent {
kind: MarkupKind::Markdown,
value: "Bar, F. (2019). *Baz Qux*.".into()
})
);
}
#[tokio::test]
async fn invalid() {
let contents = run(SCENARIO, "foo.bib", 3, 7).await;
assert_eq!(contents, None);
}
|