2023-04-24 19:14:35 +00:00
|
|
|
// exact-check
|
|
|
|
|
|
|
|
const EXPECTED = [
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'R<primitive:slice<P>>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'returned': [],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'primitive:slice<R<P>>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'returned': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'alef' },
|
|
|
|
],
|
|
|
|
'in_args': [],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'R<primitive:slice<Q>>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'returned': [],
|
|
|
|
'in_args': [],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'primitive:slice<R<Q>>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'returned': [],
|
|
|
|
'in_args': [],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'R<primitive:array<Q>>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'returned': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'bet' },
|
|
|
|
],
|
|
|
|
'in_args': [],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'primitive:array<R<Q>>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'returned': [],
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'beta' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'primitive:array<TraitCat>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'gamma' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 14:49:38 +00:00
|
|
|
'query': 'primitive:array<TraitDog>',
|
2023-04-24 19:14:35 +00:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'gamma' },
|
|
|
|
],
|
|
|
|
},
|
2023-05-25 19:58:36 +00:00
|
|
|
{
|
2023-06-07 00:21:06 +00:00
|
|
|
'query': '[TraitCat]',
|
2023-05-25 19:58:36 +00:00
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'gamma' },
|
|
|
|
{ 'path': 'slice_array', 'name': 'epsilon' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'query': 'R<[Q]>',
|
|
|
|
'returned': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'bet' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'query': 'R<[P]>',
|
|
|
|
'in_args': [
|
|
|
|
{ 'path': 'slice_array', 'name': 'alpha' },
|
|
|
|
],
|
|
|
|
},
|
2023-04-24 19:14:35 +00:00
|
|
|
];
|