mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable MethodName in CheckStyle (#5182)
enabled: MethodName in CheckStyle
This commit is contained in:
committed by
GitHub
parent
ea4dc15a24
commit
295e7436b1
@@ -6,27 +6,27 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
public class MaximumSumOfDistinctSubarraysWithLengthKTest {
|
||||
@Test
|
||||
public void SampleTestCase1() {
|
||||
public void sampleTestCase1() {
|
||||
assertEquals(15, MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, 1, 5, 4, 2, 9, 9, 9));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void SampleTestCase2() {
|
||||
public void sampleTestCase2() {
|
||||
assertEquals(0, MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, 4, 4, 4));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void SampleTestCase3() {
|
||||
public void sampleTestCase3() {
|
||||
assertEquals(12, MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, 9, 9, 9, 1, 2, 3));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void EdgeCase1() {
|
||||
public void edgeCase1() {
|
||||
assertEquals(0, MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(0, 9, 9, 9));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void EdgeCase2() {
|
||||
public void edgeCase2() {
|
||||
assertEquals(0, MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(5, 9, 9, 9));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user