Brilliant - thank you.
I was investigating along those lines but my syntax to sort the arrays wasn't up to it, not quite sure I understand why just yet:
is_deeply(sort(\@got_files), sort(\@expected_files), 'Function should return a list of directory contents that will be processed');However, your suggested syntax does the job:
is_deeply([sort @got_files], [sort @expected_files], 'Function should return a list of directory contents that will be processed');In reply to Re^5: inconistent test results when using is_deeply to test an array returned from a function
by APGRMF
in thread inconistent test results when using is_deeply to test an array returned from a function
by APGRMF
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |