Repository navigation
Added test cases as per #1161 - #1222
Conversation
There was a problem hiding this comment.
Looks like a couple of tests have failed:
BowlingTest > secondBonusRollAfterAStrikeInTheLastFrameCanNotScoreMoreThan10Points FAILED
java.lang.AssertionError: Expected test to throw (an instance of
java.lang.IllegalStateException and exception with message a string
containing "Pin count exceeds pins on the lane")
BowlingTest > bonusRollAfterAStrikeInTheLastFrameCanNotScoreMoreThan10Points FAILED
java.lang.AssertionError: Expected test to throw (an instance of
java.lang.IllegalStateException and exception with message a string
containing "Pin count exceeds pins on the lane")
Sometimes by extending the test suite the reference solution will no longer pass all the tests. In this case, I'd suggest updating the reference solution until it does. Does that sound ok @TimoleonLatinopoulos? 🙂
|
Ok let me have another go on this. @sjwarner-bp |
|
Sure thing! If you continue to push changes, this PR should automatically update 🙂 |
sjwarner-bp
left a comment
There was a problem hiding this comment.
Looks like a few more tests failed this time! If you want to avoid the longer feedback cycle of pushing back here every time, running gradle test in the exercise directory should give you an idea of if tests will pass or not 🙂
|
I didn't know that. I'll make sure to run the tests on my computer first before uploading anything. |
|
I found it super useful when starting out here 🙂 |
| throw new IllegalStateException("Score cannot be taken until the end of the game"); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
This looks perfect, if you could just look at removing the extra space on the indicated lines I'll merge this in 🙂
| throw new IllegalStateException("Pin count exceeds pins on the lane"); | ||
| } | ||
|
|
||
| } |
| } | ||
|
|
||
| } | ||
This reverts commit 0ee3b02.
|
The reverted commits are not relevant to this PR. I was trying to open a new one for another issue, but it seems that this one needs to close first. :) |
sjwarner-bp
left a comment
There was a problem hiding this comment.
This looks good to me! Thanks for getting that done so quickly 🙂
In order to separate commits for working on multiple PRs at once, you can use git branches
|
Should I close this pull request or should I wait for merging @sjwarner-bp ? |
|
@TimoleonLatinopoulos sorry, I got distracted in the middle of this! I'll merge it now 🙂 You can have more than one PR open at any one time, and using the branches linked above this should separate your commits out nicely 🙂 |
Tried to fix #1161. Canonical data
Reviewer Resources:
Track Policies