From: gmungoc Date: Thu, 4 Jun 2015 13:43:12 +0000 (+0100) Subject: JAL-1270 testToString added X-Git-Tag: Release_2_10_0~633 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=000a5f8da7129b4e379dbd6b5cd1f0411224f58c;p=jalview.git JAL-1270 testToString added --- diff --git a/test/jalview/util/MapListTest.java b/test/jalview/util/MapListTest.java index f69fe40..bfb0837 100644 --- a/test/jalview/util/MapListTest.java +++ b/test/jalview/util/MapListTest.java @@ -498,4 +498,15 @@ public class MapListTest assertEquals(prettyPrint(ml.getToRanges()), prettyPrint(ml2.getFromRanges())); } + + @Test + public void testToString() + { + MapList ml = new MapList(new int[] + { 1, 5, 10, 15, 25, 20 }, new int[] + { 51, 1 }, 1, 3); + String s = ml.toString(); + assertEquals("From (1:3) [ [1, 5] [10, 15] [25, 20] ] To [ [51, 1] ]", + s); + } }