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:
parent
10eff3eafb
commit
a3e44a59fa
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue