style: enable ArrayTypeStyle in checkstyle (#5145)

This commit is contained in:
Piotr Idzik
2024-05-06 21:49:52 +02:00
committed by GitHub
parent 414835db11
commit bfb27eeb59
5 changed files with 22 additions and 22 deletions

View File

@ -13,11 +13,11 @@ class NonRepeatingNumberFinderTest {
@Test
void testNonRepeatingNumberFinder() {
int arr[] = {1, 2, 1, 2, 6};
int[] arr = {1, 2, 1, 2, 6};
assertEquals(6, NonRepeatingNumberFinder.findNonRepeatingNumber(arr));
int arr1[] = {1, 2, 1, 2};
int[] arr1 = {1, 2, 1, 2};
assertEquals(0, NonRepeatingNumberFinder.findNonRepeatingNumber(arr1));
int arr2[] = {12};
int[] arr2 = {12};
assertEquals(12, NonRepeatingNumberFinder.findNonRepeatingNumber(arr2));
}
}