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 }));