Skip to content

Commit

Permalink
Add a test for #255
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Feb 8, 2018
1 parent af61fb3 commit 5099a10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terminal/src/test/java/org/jline/utils/ColorsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ public void testRounding() {
assertEquals(2, Colors.roundColor(71, 16, "cie00"));
}

@Test
public void testRgb() {
assertEquals(2, Colors.roundRgbColor(0, 128, 0, 16));
}
}

0 comments on commit 5099a10

Please sign in to comment.