Skip to content

Commit

Permalink
The input header 'Marvin 07140515482D' is 2 characters longer than th…
Browse files Browse the repository at this point in the history
…e output header 'CDK 0803131301'. This shifts the index by two characters.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Aug 3, 2013
1 parent 312035b commit 60e22fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/org/openscience/cdk/io/MDLCMLRoundtripTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public void testBug1649526() throws Exception{
mdlWriter.write(file);
String output = writermdl.toString();
//if there would be 3 instances (as in the bug), the only instance wouldnt't be right at the end
Assert.assertEquals(2994,output.indexOf("M END"));
Assert.assertEquals(2992,output.indexOf("M END"));
//there would need some $$$$ to be in
Assert.assertEquals(-1,output.indexOf("$$$$"));
//check atom/bond count
Assert.assertEquals(25,output.indexOf(" 31 33 0 0 0 0"));
Assert.assertEquals(23,output.indexOf(" 31 33 0 0 0 0"));
}
}

0 comments on commit 60e22fe

Please sign in to comment.