From 2669c44fcae1f976692d840b61bc37c80d9a4322 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 29 Sep 2020 16:41:39 +0100 Subject: [PATCH] JAL-3760 fix tests for changed behaviour --- test/jalview/util/ComparisonTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 })); -- 1.7.10.2