From 000a5f8da7129b4e379dbd6b5cd1f0411224f58c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 4 Jun 2015 14:43:12 +0100 Subject: [PATCH] JAL-1270 testToString added --- test/jalview/util/MapListTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); + } } -- 1.7.10.2