From: Jim Procter Date: Tue, 29 Sep 2020 15:41:39 +0000 (+0100) Subject: JAL-3760 fix tests for changed behaviour X-Git-Tag: Release_2_11_1_3~7^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-3760_protsTreatedAsNucleotides;p=jalview.git JAL-3760 fix tests for changed behaviour --- diff --git a/test/jalview/util/ComparisonTest.java b/test/jalview/util/ComparisonTest.java index 6f6841d..2e646f5 100644 --- a/test/jalview/util/ComparisonTest.java +++ b/test/jalview/util/ComparisonTest.java @@ -85,15 +85,15 @@ public class ComparisonTest seq = new Sequence("DNA", "ACTugGCCAG"); SequenceI seq2 = new Sequence("Protein", "FLIMVSPTYW"); /* - * 90% DNA: + * 90% DNA but one protein sequence - expect false */ - assertTrue(Comparison.isNucleotide(new SequenceI[] { seq, seq, seq, + assertFalse(Comparison.isNucleotide(new SequenceI[] { seq, seq, seq, seq, seq, seq, seq, seq, seq, seq2 })); - assertTrue(Comparison.isNucleotide(new SequenceI[][] { + assertFalse(Comparison.isNucleotide(new SequenceI[][] { new SequenceI[] { seq }, new SequenceI[] { seq, seq, seq }, new SequenceI[] { seq, seq, seq, seq, seq, seq2 } })); /* - * 80% DNA: + * 80% DNA but one protein sequence - Expect false */ assertFalse(Comparison.isNucleotide(new SequenceI[] { seq, seq, seq, seq, seq, seq, seq, seq, seq2, seq2 }));