Skip to content

Instantly share code, notes, and snippets.

@lejeunerenard
Created September 25, 2014 03:30
Show Gist options
  • Save lejeunerenard/db9f17367e3345e0212f to your computer and use it in GitHub Desktop.
Save lejeunerenard/db9f17367e3345e0212f to your computer and use it in GitHub Desktop.
is_deeply test in perl 5.18.0 and greater
use Test::More;
# Intermediately Failing test perl 5.18.0 >
is_deeply {
'errors' => [
{
'last_name' => 'must be unique when combined with first_name, middle_name'
},
{
'middle_name' => 'must be unique when combined with first_name, last_name'
},
{
'first_name' => 'must be unique when combined with middle_name, last_name'
}
]
},
{
'errors' => [
{
'middle_name' => 'must be unique when combined with first_name, last_name'
},
{
'last_name' => 'must be unique when combined with first_name, middle_name'
},
{
'first_name' => 'must be unique when combined with middle_name, last_name'
}
]
}, 'errors match';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment