Merge branch 'documentation/JAL-2325_release2101' into develop
[jalview.git] / test / jalview / util / FormatTest.java
index 5e49142..2082963 100644 (file)
@@ -57,4 +57,12 @@ public class FormatTest
     assertEquals(f.form(123.6f), "124.");
     assertEquals(f.form(129.6f), "130.");
   }
+
+  @Test(groups = "Functional")
+  public void testRepeat()
+  {
+    assertEquals(Format.repeat('a', 3), "aaa");
+    assertEquals(Format.repeat('b', 0), "");
+    assertEquals(Format.repeat('c', -1), "");
+  }
 }