From d6b7c22da593c31a31a4c466b746a0a3e2f6ca02 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 3 Feb 2015 11:13:19 +0000 Subject: [PATCH] Comments added --- test/jalview/datamodel/AlignedCodonFrameTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/jalview/datamodel/AlignedCodonFrameTest.java b/test/jalview/datamodel/AlignedCodonFrameTest.java index e782cef..9694a3e 100644 --- a/test/jalview/datamodel/AlignedCodonFrameTest.java +++ b/test/jalview/datamodel/AlignedCodonFrameTest.java @@ -76,10 +76,16 @@ public class AlignedCodonFrameTest final Sequence aseq2 = new Sequence("Seq2", "-LY-"); aseq2.createDatasetSequence(); + /* + * First with no mappings + */ AlignedCodonFrame acf = new AlignedCodonFrame(); assertNull(acf.getMappedRegion(seq1, aseq1, 1)); + /* + * Set up the mappings for the exons (upper-case bases) + */ MapList map = new MapList(new int[] { 2, 4, 6, 6, 8, 9 }, new int[] { 1, 2 }, 3, 1); @@ -98,6 +104,9 @@ public class AlignedCodonFrameTest assertEquals("[5, 5, 7, 8]", Arrays.toString(acf.getMappedRegion(seq2, aseq2, 2))); + /* + * No mapping from sequence 1 to sequence 2 + */ assertNull(acf.getMappedRegion(seq1, aseq2, 1)); } } -- 1.7.10.2