Skip to content

Added test cases as per #1161 - #1222

Merged
sjwarner-bp merged 8 commits into
exercism:masterfrom
TimoleonLatinopoulos:master
Jan 14, 2018
Merged

sjwarner-bp merged 8 commits into
exercism:masterfrom
TimoleonLatinopoulos:master

Conversation

@TimoleonLatinopoulos

Copy link
Copy Markdown
Contributor

Tried to fix #1161. Canonical data


Reviewer Resources:

Track Policies

@sjwarner-bp sjwarner-bp left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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? 🙂

@TimoleonLatinopoulos

Copy link
Copy Markdown
Contributor Author

Ok let me have another go on this. @sjwarner-bp

@sjwarner-bp

Copy link
Copy Markdown
Contributor

Sure thing! If you continue to push changes, this PR should automatically update 🙂

@sjwarner-bp sjwarner-bp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 🙂

@TimoleonLatinopoulos

Copy link
Copy Markdown
Contributor Author

I didn't know that. I'll make sure to run the tests on my computer first before uploading anything.

@sjwarner-bp

Copy link
Copy Markdown
Contributor

I found it super useful when starting out here 🙂

throw new IllegalStateException("Score cannot be taken until the end of the game");
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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");
}

}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here

}

}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here too 🙂

@TimoleonLatinopoulos

Copy link
Copy Markdown
Contributor Author

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 sjwarner-bp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@TimoleonLatinopoulos

Copy link
Copy Markdown
Contributor Author

Should I close this pull request or should I wait for merging @sjwarner-bp ?

@sjwarner-bp

Copy link
Copy Markdown
Contributor

@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 🙂

@sjwarner-bp
sjwarner-bp merged commit ad7e33e into exercism:master Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bowling: update tests and add version file

2 participants