Skip to content

Commit eae3158

Browse files
committed
Add A_CountEvenNumbers.java
1 parent 4dd1d23 commit eae3158

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/com/github/streams/practice/a_easy/numbers/problems/A_CountEvenNumbers.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
* Count even numbers:
1111
*
1212
* <p>Example: <br>
13-
*
1413
* Input = [1,2,3,4,5,6]<br>
1514
* Output = 3 <br>
1615
* Explanation: (1, 2, 3) are even numbers.
@@ -25,6 +24,9 @@ void countEvenNumbers() {
2524
final var mySolution = EasyNumbersProblemSolution.countNumberOfEvenNumbers(input);
2625
final var yourSolution = -1L; // WRITE YOUR IMPLEMENTATION HERE//
2726

28-
Assertions.assertEquals(mySolution, yourSolution);
27+
Assertions.assertEquals(
28+
mySolution,
29+
yourSolution,
30+
"Your solution is incorrect - you can refer to mySolution above to check, how I have done the same problem.");
2931
}
3032
}

0 commit comments

Comments
 (0)