]>
git.proxmox.com Git - pve-common.git/blob - test/is_deeply_test.pl
19 name
=> 'empty string',
25 name
=> 'empty string and undef',
31 name
=> '0 and undef',
37 name
=> 'equal strings',
43 name
=> 'unequal strings',
49 name
=> 'equal numerics',
55 name
=> 'unequal numerics',
61 name
=> 'equal arrays',
67 name
=> 'equal empty arrays',
73 name
=> 'unequal arrays',
79 name
=> 'equal empty hashes',
85 name
=> 'equal hashes',
86 a
=> { foo
=> 'bar' },
87 b
=> { foo
=> 'bar' },
91 name
=> 'unequal hashes',
92 a
=> { foo
=> 'bar' },
93 b
=> { bar
=> 'foo' },
97 name
=> 'equal nested hashes',
101 list
=> ['foo', 'bar'],
109 list
=> ['foo', 'bar'],
117 name
=> 'unequal nested hashes',
121 list
=> ['foo', 'bar'],
129 list
=> ['foo', 'bar'],
138 for my $test ($tests->@*) {
139 is (PVE
::Tools
::is_deeply
($test->{a
}, $test->{b
}), $test->{expected
}, $test->{name
});