1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
pub mod support;
use support::hover::*;
const SCENARIO: &str = "latex/component";
#[tokio::test]
async fn class_known() {
run(SCENARIO, "foo.tex", 0, 18).await.unwrap();
}
#[tokio::test]
async fn class_unknown() {
let contents = run(SCENARIO, "foo.tex", 2, 16).await;
assert_eq!(contents, None);
}
#[tokio::test]
async fn package_known() {
run(SCENARIO, "foo.tex", 1, 17).await.unwrap();
}
#[tokio::test]
async fn package_unknown() {
let contents = run(SCENARIO, "foo.tex", 3, 14).await;
assert_eq!(contents, None);
}
|