Permalink
Browse files

Updated unit test for commit #3093241, where null's are always larger…

… than an actual object
  • Loading branch information...
1 parent 652b5e2 commit 1bb844de1cc0a3ef5f7a52a75717e0e05c2c4fda @egonw egonw committed Jan 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/org/openscience/cdk/tools/manipulator/AtomContainerComparatorTest.java
@@ -56,7 +56,7 @@ public void testCompare_Null_IAtomContainer() {
Comparator<IAtomContainer> comparator = new AtomContainerComparator();
// Assert.assert correct comparison
- Assert.assertEquals("null <-> cycloPentane", -1, comparator.compare(null, cycloPentane));
+ Assert.assertEquals("null <-> cycloPentane", 1, comparator.compare(null, cycloPentane));
}
@Test
@@ -93,7 +93,7 @@ public void testCompare_IAtomContainer_Null() {
Comparator<IAtomContainer> comparator = new AtomContainerComparator();
// Assert.assert correct comparison
- Assert.assertEquals("cycloPentane <-> null", 1, comparator.compare(cycloPentane, null));
+ Assert.assertEquals("cycloPentane <-> null", -1, comparator.compare(cycloPentane, null));
}
@Test

0 comments on commit 1bb844d

Please sign in to comment.