From 745892fbddea56040139108277e728b53fd8fc11 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 28 May 2020 03:03:21 +0000 Subject: CTAN sync 202005280303 --- .../texlab/tests/test_completion_latex_label.rs | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 support/texlab/tests/test_completion_latex_label.rs (limited to 'support/texlab/tests/test_completion_latex_label.rs') diff --git a/support/texlab/tests/test_completion_latex_label.rs b/support/texlab/tests/test_completion_latex_label.rs deleted file mode 100644 index 78f302672e..0000000000 --- a/support/texlab/tests/test_completion_latex_label.rs +++ /dev/null @@ -1,34 +0,0 @@ -pub mod support; - -use lsp_types::Documentation; -use support::completion::*; - -const SCENARIO: &str = "latex/label"; - -#[tokio::test] -async fn default() { - let (_, items) = run_list(SCENARIO, "bar.tex", 4, 5).await; - assert_eq!(items.len(), 6); - verify::text_edit(&items[0], 4, 5, 4, 5, "sec:bar"); - verify::text_edit(&items[1], 4, 5, 4, 5, "sec:foo"); - verify::text_edit(&items[2], 4, 5, 4, 5, "eq:foo"); - verify::text_edit(&items[3], 4, 5, 4, 5, "eq:bar"); - verify::text_edit(&items[4], 4, 5, 4, 5, "fig:baz"); - verify::text_edit(&items[5], 4, 5, 4, 5, "thm:foo"); - verify::detail(&items[0], "Section 2 (Bar)"); - verify::detail(&items[1], "Section 1 (Foo)"); - verify::detail(&items[2], "Equation (1)"); - verify::detail(&items[3], "Equation (2)"); - verify::detail(&items[4], "Figure 1"); - verify::detail(&items[5], "Lemma 1"); - assert_eq!( - *items[4].documentation.as_ref().unwrap(), - Documentation::String("Baz".into()) - ); -} - -#[tokio::test] -async fn equation() { - let (_, items) = run_list(SCENARIO, "bar.tex", 5, 7).await; - verify::labels(&items, vec!["eq:bar", "eq:foo"]); -} -- cgit v1.2.3