I have a function that returns setof text
.
I have a pgtap
test that compares two values using pgtap
's is
comparitor:
return next is(
ARRAY(select shared_types()),
'{"{level,field_lookup,field_data,levels_insert_return}"}',
' The shared types are as expected');
The test fails with an unusual looking reporting of the comparison:
# have: {level,field_lookup,field_data,levels_insert_return} +
# want: {"{level,field_lookup,field_data,levels_insert_return}"}
I'm not sure how to interpret or, to the degree the different displays point to different types, how to cast one to the other.