diff options
author | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
commit | b8d4bb76703bcb15578e2b23c5d256532180b894 (patch) | |
tree | bedd1df7a00521a2bd986b3c0289d6556a59e39b /support/texlab/tests/test_completion_latex_include.rs | |
parent | 02e4625a78a5029e8b5dc2a4ec70193b232f497e (diff) |
CTAN sync 201912030301
Diffstat (limited to 'support/texlab/tests/test_completion_latex_include.rs')
-rw-r--r-- | support/texlab/tests/test_completion_latex_include.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/support/texlab/tests/test_completion_latex_include.rs b/support/texlab/tests/test_completion_latex_include.rs new file mode 100644 index 0000000000..b657804317 --- /dev/null +++ b/support/texlab/tests/test_completion_latex_include.rs @@ -0,0 +1,29 @@ +pub mod support; + +use support::completion::*; + +const SCENARIO: &str = "latex/include"; + +#[tokio::test] +async fn include_root() { + let (_, items) = run_list(SCENARIO, "foo.tex", 2, 9).await; + verify::labels(&items, vec!["bar", "foo", "qux"]); +} + +#[tokio::test] +async fn input_root() { + let (_, items) = run_list(SCENARIO, "foo.tex", 3, 7).await; + verify::labels(&items, vec!["bar.tex", "foo.tex", "qux"]); +} + +#[tokio::test] +async fn input_subdirectory() { + let (_, items) = run_list(SCENARIO, "foo.tex", 4, 11).await; + verify::labels(&items, vec!["baz.tex"]); +} + +#[tokio::test] +async fn bibliography() { + let (_, items) = run_list(SCENARIO, "foo.tex", 5, 16).await; + verify::labels(&items, vec!["bibliography.bib", "qux"]); +} |