mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 23:15:17 +08:00
style: enable ArrayTypeStyle
in checkstyle (#5145)
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user