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