about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/parser-quote.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc-js-std/parser-quote.js')
-rw-r--r--src/test/rustdoc-js-std/parser-quote.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc-js-std/parser-quote.js b/src/test/rustdoc-js-std/parser-quote.js
index a7aa324c24c..1e16c90de5e 100644
--- a/src/test/rustdoc-js-std/parser-quote.js
+++ b/src/test/rustdoc-js-std/parser-quote.js
@@ -5,6 +5,7 @@ const QUERY = [
     '"a" -> "p"',
     '->"-"',
     '"a',
+    '""',
 ];
 
 const PARSED = [
@@ -74,4 +75,13 @@ const PARSED = [
         userQuery: '"a',
         error: 'Unclosed `"`',
     },
+    {
+        elems: [],
+        foundElems: 0,
+        original: '""',
+        returned: [],
+        typeFilter: -1,
+        userQuery: '""',
+        error: 'Cannot have empty string element',
+    },
 ];