From afee2411e3fd5c6e8b3301fa748a760e01615904 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 30 Mar 2023 21:53:11 -0700 Subject: rustdoc-search: add support for nested generics --- tests/rustdoc-js/generics-nested.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/rustdoc-js/generics-nested.js (limited to 'tests/rustdoc-js/generics-nested.js') diff --git a/tests/rustdoc-js/generics-nested.js b/tests/rustdoc-js/generics-nested.js new file mode 100644 index 00000000000..8701f2d4986 --- /dev/null +++ b/tests/rustdoc-js/generics-nested.js @@ -0,0 +1,33 @@ +// exact-check + +const QUERY = [ + '-> Out>', + '-> Out>', + '-> Out', + '-> Out', +]; + +const EXPECTED = [ + { + // -> Out> + 'others': [ + { 'path': 'generics_nested', 'name': 'alef' }, + ], + }, + { + // -> Out> + 'others': [], + }, + { + // -> Out + 'others': [ + { 'path': 'generics_nested', 'name': 'bet' }, + ], + }, + { + // -> Out + 'others': [ + { 'path': 'generics_nested', 'name': 'bet' }, + ], + }, +]; -- cgit 1.4.1-3-g733a5