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