Skip to content

Commit fcbf42e

Browse files
committed
BRANCH again3
1 parent 6d9c7dd commit fcbf42e

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/main/java/ru/netology/statistic/StatisticsService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public long findMax(long[] incomes) {
1313
for (long income : incomes)
1414
if (current_max < income) {
1515
current_max = income;
16-
}
16+
}
1717
return current_max;
1818
}
1919
}
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
package ru.netology.statistic;
2-
32
import org.junit.jupiter.api.Test;
4-
53
import static org.junit.jupiter.api.Assertions.*;
6-
74
class StatisticsServiceTest {
8-
95
@Test
106
void findMax() {
117
StatisticsService service = new StatisticsService();
12-
13-
long[] incomesInBillions = {12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 };
14-
long expected = 12;
15-
8+
long[] incomesInBillions = {12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 13 };
9+
long expected = 13;
1610
long actual = service.findMax(incomesInBillions);
17-
1811
assertEquals(expected, actual);
1912
}
2013
}

0 commit comments

Comments
 (0)