Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Colors have changed - update test.
  • Loading branch information
johnmay committed Dec 12, 2015
1 parent e3406c2 commit 5e10262
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -40,10 +40,10 @@ public void testGetAtomColor() {
Assert.assertNotNull(colors);
IAtom hydrogen = new Atom("H");
hydrogen.setAtomicNumber(1);
Assert.assertEquals(new Color(51, 51, 51), colors.getAtomColor(hydrogen));
Assert.assertEquals(new Color(0, 0, 0), colors.getAtomColor(hydrogen));
IAtom helium = new Atom("He");
helium.setAtomicNumber(2);
Assert.assertEquals(new Color(103, 194, 255), colors.getAtomColor(helium));
Assert.assertEquals(new Color(217, 255, 255), colors.getAtomColor(helium));
}

@Test
Expand All @@ -52,6 +52,6 @@ public void testGetDefaultAtomColor() {

Assert.assertNotNull(colors);
IAtom imaginary = new Atom("Ix");
Assert.assertEquals(new Color(51, 51, 51), colors.getAtomColor(imaginary, Color.BLACK));
Assert.assertEquals(new Color(0, 0, 0), colors.getAtomColor(imaginary, Color.BLACK));
}
}

0 comments on commit 5e10262

Please sign in to comment.