summaryrefslogtreecommitdiff
path: root/support/texlab/tests/test_completion_bibtex_command.rs
blob: 1d741d697617fabbd688a0c47fdc29eebf081c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub mod support;

use support::completion::*;

const SCENARIO: &str = "bibtex/command";

#[tokio::test]
async fn incomplete_entry() {
    let item = run_item(SCENARIO, "foo.bib", 1, 15, "LaTeX").await;
    verify::text_edit(&item, 1, 15, 1, 18, "LaTeX");
    verify::detail(&item, "built-in");
}

#[tokio::test]
async fn complete_entry() {
    let item = run_item(SCENARIO, "foo.bib", 5, 15, "LaTeX").await;
    verify::text_edit(&item, 5, 15, 5, 18, "LaTeX");
    verify::detail(&item, "built-in");
}