Skip to content

2257 birds watcher remove test#2265

Merged
andrerfcsantos merged 3 commits into
exercism:mainfrom
vorenusCoA:2257-Birds-Watcher-Remove-Test
Feb 27, 2023
Merged

2257 birds watcher remove test#2265
andrerfcsantos merged 3 commits into
exercism:mainfrom
vorenusCoA:2257-Birds-Watcher-Remove-Test

Conversation

@vorenusCoA
Copy link
Copy Markdown
Contributor

pull request

Closes #2257

Since the pre-condition for the exercise is that we have a fixed number of elements in the array there should not be a test checking for an empty array. Having that test will prevent some valid solutions not to pass.

Two files have been modified:

  1. exercises/concept/bird-watcher/src/test/java/BirdWatcherTest.java: removing the conflicting test

  2. exercises/concept/bird-watcher/.meta/src/reference/java/BirdWatcher.java: removing the check for a length of zero in the reference code since that check is not necessary


Reviewer Resources:

Track Policies

@andrerfcsantos andrerfcsantos added the x:rep/small Small amount of reputation label Feb 27, 2023
@andrerfcsantos andrerfcsantos merged commit 0e7670c into exercism:main Feb 27, 2023
Copy link
Copy Markdown
Member

@andrerfcsantos andrerfcsantos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:rep/small Small amount of reputation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bird Watcher - Empty array scenario

2 participants