Commit 18cef93a authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Also test the dark collection

parent d3d6feb3
......@@ -52,9 +52,11 @@ is(@$ref, $i, 'Same size - there can be only 1 fox');
$collection->add_once('human');
is(@$ref, ++$i, 'Addition - Someone comes in');
$collection->forget('fox');
$collection->forget_and_mark_for_deletion('fox');
is(@$ref, --$i, 'one less element - the fox is gone: we\'re safe !');
ok($collection->dark_collection->present('fox'));
$collection = Bio::EnsEMBL::Hive::Utils::Collection->new([{ foo => undef}]);
$collection->add({ foo => undef });
$collection->add({ bar => 'foobar' });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment