Refactor Code Style (#4151)

This commit is contained in:
Saurabh Rahate
2023-04-15 13:55:54 +05:30
committed by GitHub
parent 1ce907625b
commit 1dc388653a
100 changed files with 293 additions and 319 deletions

View File

@ -7,8 +7,8 @@ public class AutomorphicNumberTest {
@Test
void testAutomorphicNumber() {
int trueTestCases[] = { 0, 1, 25, 625, 12890625};
int falseTestCases[] = { -5, 2, 26, 1234 };
int[] trueTestCases = { 0, 1, 25, 625, 12890625};
int[] falseTestCases = { -5, 2, 26, 1234 };
for (Integer n : trueTestCases) {
assertTrue(AutomorphicNumber.isAutomorphic(n));
assertTrue(AutomorphicNumber.isAutomorphic2(n));

View File

@ -7,8 +7,8 @@ class PerfectNumberTest {
@Test
public void perfectNumber() {
int trueTestCases[] = { 6, 28, 496, 8128, 33550336 };
int falseTestCases[] = { -6, 0, 1, 9, 123 };
int[] trueTestCases = { 6, 28, 496, 8128, 33550336 };
int[] falseTestCases = { -6, 0, 1, 9, 123 };
for (Integer n : trueTestCases) {
assertTrue(PerfectNumber.isPerfectNumber(n));
assertTrue(PerfectNumber.isPerfectNumber2(n));