Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… than an actual object
  • Loading branch information...
commit 1bb844de1cc0a3ef5f7a52a75717e0e05c2c4fda 1 parent 652b5e2
@egonw egonw authored
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.