This commit adds a test case for generics, re-adds generics data
to the search index, and tweaks function indexing to use less space in JSON.
This reverts commit 14ca89446c.
44 lines
930 B
JavaScript
44 lines
930 B
JavaScript
// exact-check
|
|
|
|
const QUERY = [
|
|
'"R<P>"',
|
|
'"P"',
|
|
'P',
|
|
'"ExtraCreditStructMulti<ExtraCreditInnerMulti, ExtraCreditInnerMulti>"',
|
|
];
|
|
|
|
const EXPECTED = [
|
|
{
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
],
|
|
},
|
|
{
|
|
'others': [
|
|
{ 'path': 'generics', 'name': 'P' },
|
|
],
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
],
|
|
},
|
|
{
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
],
|
|
},
|
|
{
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'extracreditlabhomework' },
|
|
],
|
|
'returned': [],
|
|
},
|
|
];
|