summaryrefslogtreecommitdiff
path: root/support/texlab/tests/test_completion_bibtex_word.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/tests/test_completion_bibtex_word.rs')
-rw-r--r--support/texlab/tests/test_completion_bibtex_word.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/support/texlab/tests/test_completion_bibtex_word.rs b/support/texlab/tests/test_completion_bibtex_word.rs
new file mode 100644
index 0000000000..3f757047a3
--- /dev/null
+++ b/support/texlab/tests/test_completion_bibtex_word.rs
@@ -0,0 +1,20 @@
+pub mod support;
+
+use support::completion::*;
+
+const SCENARIO: &str = "bibtex/word";
+
+#[tokio::test]
+async fn no_text() {
+ run_empty(SCENARIO, "foo.bib", 0, 0).await;
+}
+
+#[tokio::test]
+async fn before_brace_entry() {
+ run_empty(SCENARIO, "foo.bib", 2, 14).await;
+}
+
+#[tokio::test]
+async fn before_brace_comment() {
+ run_empty(SCENARIO, "foo.bib", 6, 14).await;
+}