From bcea9bfe5148c15a976bdfa4ca3d2ad384a141ed Mon Sep 17 00:00:00 2001 From: Nehon Date: Fri, 11 Mar 2016 18:16:48 +0100 Subject: [PATCH] Better regex testing in TestMaterialWrite --- .../test/java/com/jme3/material/plugin/TestMaterialWrite.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-plugins/src/test/java/com/jme3/material/plugin/TestMaterialWrite.java b/jme3-plugins/src/test/java/com/jme3/material/plugin/TestMaterialWrite.java index f7c3b9d9f..22378f59e 100644 --- a/jme3-plugins/src/test/java/com/jme3/material/plugin/TestMaterialWrite.java +++ b/jme3-plugins/src/test/java/com/jme3/material/plugin/TestMaterialWrite.java @@ -73,7 +73,7 @@ public class TestMaterialWrite { // System.err.println(reference); // System.err.println(stream.toString()); - assertEquals(reference.replaceAll("\\s",""), stream.toString().replaceAll("\\s","")); + assertEquals(reference.replaceAll("[\\s|\\r\\n]",""), stream.toString().replaceAll("[\\s|\\r\\n]","")); } private String convertStreamToString(java.io.InputStream is) {