Skip to content

Commit

Permalink
Make tests OS newline independent.
Browse files Browse the repository at this point in the history
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Sep 9, 2014
1 parent 3674a72 commit f310ccd
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -586,7 +586,7 @@ public void testSingleSingletRadical() throws Exception {
writer.write(molecule);
writer.close();

String[] lines = sw.toString().split("\n");
String[] lines = sw.toString().split(System.getProperty("line.separator"));

assertThat("incorrect file length",
lines.length, is(9));
Expand All @@ -608,7 +608,7 @@ public void testSingleDoubletRadical() throws Exception {
writer.write(molecule);
writer.close();

String[] lines = sw.toString().split("\n");
String[] lines = sw.toString().split(System.getProperty("line.separator"));

assertThat("incorrect file length",
lines.length, is(9));
Expand All @@ -633,7 +633,7 @@ public void testSingleTripletRadical() throws Exception {
writer.write(molecule);
writer.close();

String[] lines = sw.toString().split("\n");
String[] lines = sw.toString().split(System.getProperty("line.separator"));


assertThat("incorrect file length",
Expand All @@ -656,7 +656,7 @@ public void testMultipleRadicals() throws Exception {
writer.write(molecule);
writer.close();

String[] lines = sw.toString().split("\n");
String[] lines = sw.toString().split(System.getProperty("line.separator"));

assertThat("incorrect file length",
lines.length, is(24));
Expand Down

0 comments on commit f310ccd

Please sign in to comment.