Simplify and eliminate boxing warning

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-07-18 14:04:11 +00:00
parent 10eff3eafb
commit a3e44a59fa
1 changed files with 3 additions and 3 deletions

View File

@ -114,13 +114,13 @@ public class PrimesTest {
@Test
public void testIsPrime() throws Exception {
for (int i : BELOW_2) {
Assert.assertEquals(false,Primes.isPrime(i));
Assert.assertFalse(Primes.isPrime(i));
}
for (int i:NOT_PRIMES) {
Assert.assertEquals(false,Primes.isPrime(i));
Assert.assertFalse(Primes.isPrime(i));
}
for (int i:PRIMES) {
Assert.assertEquals(true,Primes.isPrime(i));
Assert.assertTrue(Primes.isPrime(i));
}
}