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_definition_latex_citation.rs | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 support/texlab/tests/test_definition_latex_citation.rs (limited to 'support/texlab/tests/test_definition_latex_citation.rs') diff --git a/support/texlab/tests/test_definition_latex_citation.rs b/support/texlab/tests/test_definition_latex_citation.rs deleted file mode 100644 index 20c39dfe9d..0000000000 --- a/support/texlab/tests/test_definition_latex_citation.rs +++ /dev/null @@ -1,27 +0,0 @@ -pub mod support; - -use lsp_types::Range; -use support::definition::*; -use texlab::range::RangeExt; - -const SCENARIO: &str = "latex/citation"; - -#[tokio::test] -async fn link() { - let (scenario, mut links) = run_link(SCENARIO, "foo.tex", 1, 7).await; - assert_eq!(links.len(), 1); - let link = links.pop().unwrap(); - verify::origin_selection_range(&link, 1, 6, 1, 9); - assert_eq!(link.target_uri, scenario.uri("bar.bib").into()); - assert_eq!(link.target_range, Range::new_simple(2, 0, 2, 14)); - assert_eq!(link.target_selection_range, Range::new_simple(2, 9, 2, 12)); -} - -#[tokio::test] -async fn location() { - let (scenario, mut locations) = run_location(SCENARIO, "foo.tex", 1, 7).await; - assert_eq!(locations.len(), 1); - let location = locations.pop().unwrap(); - assert_eq!(location.uri, scenario.uri("bar.bib").into()); - assert_eq!(location.range, Range::new_simple(2, 9, 2, 12)); -} -- cgit v1.2.3