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
7b728ae3
Commit
7b728ae3
authored
Feb 05, 2016
by
Matthieu Muffato
Browse files
added another test for Collection::add_once()
parent
3ea7e990
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
t/01.utils/collection.t
t/01.utils/collection.t
+2
-0
No files found.
t/01.utils/collection.t
View file @
7b728ae3
...
...
@@ -48,6 +48,8 @@ ok(!$collection->present('chickens'), '!present() - The fox is unlucky');
$collection
->
add_once
('
fox
');
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
');
is
(
@$ref
,
--
$i
,
'
one less element - the fox is gone: we
\'
re safe !
');
...
...
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