-
-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add descriptions to Roman numerals canonical data. #451
Conversation
Descriptions could be worked out programatically (or by a human), but: 1. this entails more work for an automated test generator, which is not needed elsewhere as most (if not all) other data files provide descriptions. 2. descriptions won't be consistent across streams
@stevejb71 thanks for your work on this, it's good for all test data files to have descriptions. However, the descriptions need to be useful. As you've said yourself these descriptions could be derived from information already in the file, so they are not adding any value, and cross stream consistency of error messages is a very unimportant thing. A description should explain what a test is testing and why this test is important. Have a look at bowling
This is a test to catch a common implementation bug that would cause the bonus roll to be counted twice. And note how that is different from:
Roman numerals is a hard, because it's easy to fall into the trap you have and just make a simple in -> out mapping. Think about why each number is being tested. If you do this process fully you'll find test cases that are missing and test cases that are redundant, but at the end you'll have a set of tests with descriptions that do usefully and clearly describe the problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Descriptions should explain what a test is testing and why this test is important. Not just echo the input and output values.
I'll take a look, it's a little hard to form good concise descriptions of these tests. |
@stevejb71 A little bump :) Are you still interested in working on this PR? Coming up with good descriptions can be hard, but I think it is possible here. There is a very nice post on the F# for fun and profit website on implementing Roman Numerals in F#. In that post, several requirements are listed:
Perhaps you can use those requirements as an inspiration for test descriptions (and test data)? |
There look to be some good ideas in that article such should help me get started. May take a few weeks, I've got a holiday coming up shortly. |
@stevejb71 Good luck with it. And enjoy your holiday :) |
Hi, We're mostly finishing #625, and Could we merge this the way it is to allow compliance and later fix it as someone comes up with better descriptions? |
Erm well I can offer my descriptions that I tried to cook up for this special occasion just now, but it's a bit unfortunate because for example the description for the 93 test implies it is only testing 90, but it is testing 90 + 3. It's in a PR now so y'all can comment on it if y'all care. |
Descriptions could be worked out programatically (or by a human), but: