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