summaryrefslogtreecommitdiff
path: root/support/texlab/tests/test_completion_latex_tikz.rs
blob: d3558fb118c1e63475d5b34f52831a7ac428380e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//     let item = run_completion_item("latex/tikz", "foo.tex", 1, 15, "arrows").await;
//     verify_text_edit(&item, 1, 15, 1, 15, "arrows");
//     let item = run_completion_item("latex/tikz", "foo.tex", 2, 16, "arrows").await;
//     verify_text_edit(&item, 2, 16, 2, 16, "arrows");
pub mod support;

use support::completion::*;

const SCENARIO: &str = "latex/tikz";

#[tokio::test]
async fn pgf_library() {
    let item = run_item(SCENARIO, "foo.tex", 1, 15, "arrows").await;
    verify::text_edit(&item, 1, 15, 1, 15, "arrows");
}

#[tokio::test]
async fn tikz_library() {
    let item = run_item(SCENARIO, "foo.tex", 2, 16, "arrows").await;
    verify::text_edit(&item, 2, 16, 2, 16, "arrows");
}