X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FStockholmFileTest.java;h=cdadf31cb8f4396e18e893a50d6577e6d0c0fb23;hb=a8e0667a62546cdd95d44a45cf14a629cfa416a6;hp=e86c8ad79f8852be2aa0ecb0a2a4208eaf546928;hpb=483abbfd34bb2e47698f4cb04e21531c2b11924a;p=jalview.git diff --git a/test/jalview/io/StockholmFileTest.java b/test/jalview/io/StockholmFileTest.java index e86c8ad..cdadf31 100644 --- a/test/jalview/io/StockholmFileTest.java +++ b/test/jalview/io/StockholmFileTest.java @@ -837,7 +837,8 @@ public class StockholmFileTest String stockholmFile = sf.print(alWithSpaces.getSequencesArray(), true); Pattern noSpacesInRnaSSAnnotation = Pattern .compile("\\n#=GC SS_cons\\s+\\S{14}\\n"); - Matcher m = noSpacesInRnaSSAnnotation.matcher(stockholmFile); + Matcher m = noSpacesInRnaSSAnnotation + .matcher(stockholmFile.replace("\r\n", "\n")); boolean matches = m.find(); Assert.assertTrue(matches, "StockholmFile output does not contain expected output (may contain spaces):\n"