Skip to content

Instantly share code, notes, and snippets.

@lejeunerenard
Created September 25, 2014 03:57
Show Gist options
  • Save lejeunerenard/33a629dd8b8ee32db4e2 to your computer and use it in GitHub Desktop.
Save lejeunerenard/33a629dd8b8ee32db4e2 to your computer and use it in GitHub Desktop.
cmp_bag
use Test::Deep;
cmp_bag [
{ 'middle_name' => 'must be unique when combined with first_name, last_name' },
{ 'first_name' => 'must be unique when combined with middle_name, last_name' },
{ 'last_name' => 'must be unique when combined with first_name, middle_name and must be unique when combined with suffix' },
{ 'suffix' => 'must be unique when combined with last_name' }
], [
{ 'suffix' => 'must be unique when combined with last_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', },
{ 'last_name' => 'must be unique when combined with suffix and must be unique when combined with first_name, middle_name', },
], 'eq arrays of hashrefs';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment