Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add a few more annotation classes with simple tests
- Loading branch information
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use v6; | ||
|
||
use lib './lib'; | ||
use Test; | ||
|
||
use Bio::Annotation::Comment; | ||
|
||
my $comment = Bio::Annotation::Comment.new( text => 'sometext'); | ||
does-ok($comment, Bio::Role::Annotation); | ||
is $comment.text, 'sometext'; | ||
is ~$comment, 'Comment: sometext'; | ||
|
||
done-testing(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use v6; | ||
|
||
use lib './lib'; | ||
use Test; | ||
|
||
use Bio::Annotation::DBLink; | ||
|
||
my $link1 = Bio::Annotation::DBLink.new(database => 'TSC', | ||
primary-id => 'TSC0000030', | ||
); | ||
does-ok($link1, Bio::Role::Annotation); | ||
does-ok($link1, Bio::Role::Identifiable); | ||
|
||
is $link1.database, 'TSC'; | ||
is $link1.primary-id, 'TSC0000030'; | ||
is ~$link1, 'Direct database link to TSC0000030 in database TSC'; | ||
|
||
done-testing(); |