package jalview.gui; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertNull; import static org.testng.AssertJUnit.assertSame; import org.testng.annotations.Test; public class AppVarnaTest { @Test public void testReplaceOddGaps() { String struct = "{(<]}>)"; String replaced = AppVarna.replaceOddGaps(struct); assertEquals(struct, replaced); assertSame(struct, replaced); assertEquals("..{.([.<.].}.>)", AppVarna.replaceOddGaps("..{ ([*<-]?} >)")); assertEquals("....", AppVarna.replaceOddGaps("cgta")); assertEquals("", AppVarna.replaceOddGaps("")); assertNull(AppVarna.replaceOddGaps(null)); } }