diff options
Diffstat (limited to 'support/texlab/tests/test_hover_latex_component.rs')
-rw-r--r-- | support/texlab/tests/test_hover_latex_component.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/support/texlab/tests/test_hover_latex_component.rs b/support/texlab/tests/test_hover_latex_component.rs new file mode 100644 index 0000000000..de5c9c8b6c --- /dev/null +++ b/support/texlab/tests/test_hover_latex_component.rs @@ -0,0 +1,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); +} |