Skip to content

Instantly share code, notes, and snippets.

@sebastianmonte
Created February 12, 2015 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastianmonte/c94b150b4edbeb740868 to your computer and use it in GitHub Desktop.
Save sebastianmonte/c94b150b4edbeb740868 to your computer and use it in GitHub Desktop.
Number Helper Tests
@Test
public void thatPositiveNumberIsNonnegative() {
assertTrue(NumberHelper.isNonnegative(1));
}
@Test
public void thatNegativeNumberIsNotNonnegative() {
assertFalse(NumberHelper.isNonnegative(-1));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment