Skip to content

Commit

Permalink
bird-watcher: Add test case for end of the log (#2780)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
mugane-dj authored Jul 27, 2024
1 parent c825ad5 commit 7c9fb06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/concept/bird-watcher/bird_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ func TestBirdsInWeek(t *testing.T) {
week: 2,
want: 18,
},
{
name: "calculates the number of birds for a week in the end of the log",
birdCounts: []int{4, 7, 3, 2, 1, 1, 2, 0, 2, 3, 2, 7, 1, 3, 0, 6, 5, 3, 7, 2, 3},
week: 3,
want: 26,
},
{
name: "works when there is only one week",
birdCounts: []int{3, 0, 3, 3, 2, 1, 0},
Expand Down

0 comments on commit 7c9fb06

Please sign in to comment.