Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
18cef93a
Commit
18cef93a
authored
Nov 18, 2016
by
Matthieu Muffato
Browse files
Also test the dark collection
parent
d3d6feb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
t/01.utils/collection.t
t/01.utils/collection.t
+3
-1
No files found.
t/01.utils/collection.t
View file @
18cef93a
...
...
@@ -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
'
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment