commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [1/3] [text] StrBuilderTest#testAppendln: make test operating system independent
Date Thu, 22 Jun 2017 18:25:23 GMT
Repository: commons-text
Updated Branches:
  refs/heads/master 2de4cf9b9 -> 25ec8d186


StrBuilderTest#testAppendln: make test operating system independent


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/3fcc4e85
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/3fcc4e85
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/3fcc4e85

Branch: refs/heads/master
Commit: 3fcc4e8586807424fff21ee1f55fc2779ae78524
Parents: 2de4cf9
Author: Pascal Schumacher <pascalschumacher@gmx.net>
Authored: Thu Jun 22 20:22:41 2017 +0200
Committer: Pascal Schumacher <pascalschumacher@gmx.net>
Committed: Thu Jun 22 20:22:41 2017 +0200

----------------------------------------------------------------------
 src/test/java/org/apache/commons/text/StrBuilderTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/3fcc4e85/src/test/java/org/apache/commons/text/StrBuilderTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/StrBuilderTest.java b/src/test/java/org/apache/commons/text/StrBuilderTest.java
index 6039a95..24bc6e1 100644
--- a/src/test/java/org/apache/commons/text/StrBuilderTest.java
+++ b/src/test/java/org/apache/commons/text/StrBuilderTest.java
@@ -2103,6 +2103,6 @@ public class StrBuilderTest {
     public void testAppendln() {
         final StrBuilder sb1 = new StrBuilder();
         final char ch = 'c';
-        assertEquals("c\n", sb1.appendln(ch).toString());
+        assertEquals("c" + System.lineSeparator(), sb1.appendln(ch).toString());
     }
 }


Mime
View raw message