MapList fk = new MapList(new int[] { 1, 6, 8, 13 }, new int[] { 4, 7 },
3, 1);
Mapping m = new Mapping(fk);
- assertEquals("[ [1, 6] [8, 13] ] To [ [4, 7] ] ", m.toString());
+ assertEquals("[ [1, 6] [8, 13] ] 3:1 to [ [4, 7] ] ", m.toString());
/*
* with a sequence
*/
SequenceI seq = new Sequence("Seq1", "");
m = new Mapping(seq, fk);
- assertEquals("[ [1, 6] [8, 13] ] To [ [4, 7] ] Seq1", m.toString());
+ assertEquals("[ [1, 6] [8, 13] ] 3:1 to [ [4, 7] ] Seq1", m.toString());
}
}
MapList ml = new MapList(new int[] { 1, 5, 10, 15, 25, 20 }, new int[] {
51, 1 }, 1, 3);
String s = ml.toString();
- assertEquals("[ [1, 5] [10, 15] [25, 20] ] To [ [51, 1] ]",
+ assertEquals("[ [1, 5] [10, 15] [25, 20] ] 1:3 to [ [51, 1] ]",
s);
}
String s = ml.toString();
assertEquals(
- "[ [11, 15] [20, 25] [35, 30] [2, 4] [37, 40] ] To [ [72, 22] [12, 17] [78, 83] [88, 96] ]",
+ "[ [11, 15] [20, 25] [35, 30] [2, 4] [37, 40] ] 1:3 to [ [72, 22] [12, 17] [78, 83] [88, 96] ]",
s);
}
MapList ml2 = new MapList(new int[] { 15, 16 }, new int[] { 58, 53 },
1, 3);
ml.addMapList(ml2);
- assertEquals("[ [11, 16] ] To [ [72, 53] ]", ml.toString());
+ assertEquals("[ [11, 16] ] 1:3 to [ [72, 53] ]", ml.toString());
}
@Test(groups = "Functional")