Repository navigation
Beer song instance methods - #404
Conversation
Refactoring from static methods to instance methods
|
That's fine, I'm glad you moved the curly brackets, it looks better now :) When you've checked out the repo to develop, the gradle build will remove the |
|
You're absolutely right! Now that you've mentioned it, I recall reading in the docs that the build runs all tests for devs, and ignores some of them for the users. I get it. Thanks for the clarification :) |
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great @vasouv! Only one small comment :)
| assertEquals("99 bottles of beer on the wall, 99 bottles of beer.\n" + | ||
| "Take one down and pass it around, 98 bottles of beer on the wall.\n\n", | ||
| BeerSong.verse(99)); | ||
| new BeerSong().verse(99)); |
There was a problem hiding this comment.
If you make a private BeerSong variable, then you can initialise it in a setup method and just do beerSong.verse(99) here :) That way you don't have to duplicate the initialisation in every test :)
|
Fixed. And to think my previous pull request was doing exactly that at the wordy exercise :P |
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great! Thanks @vasouv! :)
Oops, because I moved a couple of curly brackets, the diff is weird now. Should I fix in case it's confusing?
Also, question: why do we have ignore annotations if gradle runs all the tests anyway?