From 0db47390e2af25cdb8cdf1fc793835c57779ec75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?=
 <ak4@sanger.ac.uk>
Date: Tue, 3 Apr 2007 11:54:06 +0000
Subject: [PATCH] Added tests for cdna_start(), cdna_end(), genomic_start(),
 and genomic_end() on translations.

Current API and test DB passes the tests.
---
 modules/t/translation.t | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/modules/t/translation.t b/modules/t/translation.t
index 8683652677..9c6696dfd0 100644
--- a/modules/t/translation.t
+++ b/modules/t/translation.t
@@ -5,9 +5,10 @@ use Bio::EnsEMBL::Test::TestUtils;
 use Bio::EnsEMBL::Translation;
 use Bio::EnsEMBL::Exon;
 
-BEGIN { $| = 1;
-	use Test;
-	plan tests => 36;
+BEGIN {
+    $| = 1;
+    use Test;
+    plan tests => 40;
 }
 
 my $loaded = 0;
@@ -283,4 +284,14 @@ ok(count_rows($db, 'translation_attrib') == 2);
 
 $multi->restore('core');
 
+# TEST 37-40: Tests for cdna_start(), cdna_end(), genomic_start(), and
+# genomic_end().
 
+$tr = $tra->fetch_by_stable_id('ENST00000246229');
+$tl = $tr->translation();
+
+ok( $tl->cdna_start() == 203 );
+ok( $tl->cdna_end() == 1690 );
+
+ok( $tl->genomic_start() == 30572315 );
+ok( $tl->genomic_end() == 30578038 );
-- 
GitLab