2021-06-26 19:00:26 +00:00
|
|
|
// exact-check
|
|
|
|
|
|
|
|
const QUERY = [
|
2022-01-03 22:51:20 +00:00
|
|
|
'R<P>',
|
2021-08-23 20:19:43 +00:00
|
|
|
'"P"',
|
|
|
|
'P',
|
2022-01-03 22:51:20 +00:00
|
|
|
'ExtraCreditStructMulti<ExtraCreditInnerMulti, ExtraCreditInnerMulti>',
|
2021-08-23 20:19:43 +00:00
|
|
|
'TraitCat',
|
|
|
|
'TraitDog',
|
2021-08-11 18:14:26 +00:00
|
|
|
'Result<String>',
|
2021-06-26 19:00:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const EXPECTED = [
|
|
|
|
{
|
2022-02-11 14:48:57 +00:00
|
|
|
// R<P>
|
2021-06-26 19:00:26 +00:00
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 18:14:26 +00:00
|
|
|
// "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' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 18:14:26 +00:00
|
|
|
// P
|
2021-06-26 19:00:26 +00:00
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-12-20 16:45:52 +00:00
|
|
|
// "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
|
|
|
{
|
2021-08-11 18:14:26 +00:00
|
|
|
// TraitCat
|
2021-08-23 20:19:43 +00:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'gamma' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-11 18:14:26 +00:00
|
|
|
// TraitDog
|
2021-08-23 20:19:43 +00:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'gamma' },
|
|
|
|
],
|
|
|
|
},
|
2021-08-11 18:14:26 +00:00
|
|
|
{
|
|
|
|
// Result<String>
|
|
|
|
'others': [],
|
|
|
|
'returned': [
|
|
|
|
{ 'path': 'generics', 'name': 'super_soup' },
|
|
|
|
],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'generics', 'name': 'super_soup' },
|
|
|
|
],
|
|
|
|
},
|
2021-06-26 19:00:26 +00:00
|
|
|
];
|