2021-06-26 14:00:26 -05:00
|
|
|
// exact-check
|
|
|
|
|
|
|
|
const EXPECTED = [
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': 'R<P>',
|
2021-06-26 14:00:26 -05:00
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
2023-02-28 19:17:59 -06:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': 'R<struct:P>',
|
2023-02-28 19:17:59 -06:00
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': 'R<enum:P>',
|
2023-02-28 19:17:59 -06:00
|
|
|
'returned': [],
|
|
|
|
'in_args': [],
|
|
|
|
},
|
2021-06-26 14:00:26 -05:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': '"P"',
|
2021-06-26 14:00:26 -05:00
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics', 'name': 'P' },
|
|
|
|
],
|
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': 'P',
|
2021-06-26 14:00:26 -05:00
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': '"ExtraCreditStructMulti"<ExtraCreditInnerMulti, ExtraCreditInnerMulti>',
|
2021-06-26 14:00:26 -05:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'extracreditlabhomework' },
|
|
|
|
],
|
|
|
|
'returned': [],
|
|
|
|
},
|
2021-08-23 15:19:43 -05:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': 'TraitCat',
|
2021-08-23 15:19:43 -05:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'gamma' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': 'TraitDog',
|
2021-08-23 15:19:43 -05:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'gamma' },
|
|
|
|
],
|
|
|
|
},
|
2021-08-11 13:14:26 -05:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
'query': 'Result<String>',
|
2021-08-11 13:14:26 -05:00
|
|
|
'others': [],
|
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'super_soup' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'super_soup' },
|
|
|
|
],
|
|
|
|
},
|
2021-06-26 14:00:26 -05:00
|
|
|
];
|