about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-30 14:20:17 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-30 14:20:17 +0200
commit855923c895681976d7a3ce6ff376f9b4c3b21ae8 (patch)
tree22700a60f7ff3391a2d6518e7cb149ceb895a689
parent7b62d28cf2ca427dde2635e1ae5147a774442c99 (diff)
downloadrust-855923c895681976d7a3ce6ff376f9b4c3b21ae8.tar.gz
rust-855923c895681976d7a3ce6ff376f9b4c3b21ae8.zip
Add test to ensure that the typed queries are not including other types
-rw-r--r--src/test/rustdoc-js-std/typed-query.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc-js-std/typed-query.js b/src/test/rustdoc-js-std/typed-query.js
new file mode 100644
index 00000000000..f656aa72986
--- /dev/null
+++ b/src/test/rustdoc-js-std/typed-query.js
@@ -0,0 +1,12 @@
+// exact-check
+
+const QUERY = 'macro:print';
+
+const EXPECTED = {
+    'others': [
+        { 'path': 'std', 'name': 'print' },
+        { 'path': 'std', 'name': 'eprint' },
+        { 'path': 'std', 'name': 'println' },
+        { 'path': 'std', 'name': 'eprintln' },
+    ],
+};