Commit bb2b8f3
Add test case for Bird Watcher exercise (#2956)
Add a test to `hasDayWithoutBirds` for when the last day has zero visits. This checks that the solution correctly checks the entire array. See also a the forum post https://forum.exercism.org/t/bird-watcher-in-java-should-we-add-a-test-case/17933/16.
Also make `lastWeek` final in the test, since the field isn't meant to change in the test.
Co-authored-by: Jegors Cemisovs <[email protected]>1 parent bb0bca8 commit bb2b8f3
File tree
1 file changed
+8
-1
lines changed- exercises/concept/bird-watcher/src/test/java
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
| |||
0 commit comments