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