X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fmath%2FRotatableMatrixTest.java;h=fb0532d5b10640850b7874eb78a9b456696b4373;hb=d5ac10ac87433d27a49d02e7994347b65fa2090a;hp=31b47aac56da483ee0707a9aad70925faf25d39c;hpb=83a7efc57926ebf046f95de5291eb439563eb953;p=jalview.git diff --git a/test/jalview/math/RotatableMatrixTest.java b/test/jalview/math/RotatableMatrixTest.java index 31b47aa..fb0532d 100644 --- a/test/jalview/math/RotatableMatrixTest.java +++ b/test/jalview/math/RotatableMatrixTest.java @@ -12,6 +12,8 @@ import org.testng.annotations.Test; public class RotatableMatrixTest { + private static final String NL = System.lineSeparator(); + private RotatableMatrix rm; @BeforeMethod(alwaysRun = true) @@ -36,7 +38,8 @@ public class RotatableMatrixTest @Test(groups = "Functional") public void testPrint() { - String expected = "0.5 1.0 1.5\n1.0 2.0 3.0\n1.5 3.0 4.5\n"; + String expected = "0.5 1.0 1.5" + NL + "1.0 2.0 3.0" + NL + + "1.5 3.0 4.5" + NL; ByteArrayOutputStream os = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(os, true); rm.print(ps);