From 855923c895681976d7a3ce6ff376f9b4c3b21ae8 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 30 Jun 2021 14:20:17 +0200 Subject: [PATCH] Add test to ensure that the typed queries are not including other types --- src/test/rustdoc-js-std/typed-query.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/test/rustdoc-js-std/typed-query.js 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 0000000000000..f656aa72986fd --- /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' }, + ], +};