book-store: shortened test descriptions#514
Conversation
Descriptions have been shortened so as to make the json nicer for automatic test generators, so test case functions do not end up being too long.
|
#470 mentioned shortening the names a few times... Looks like this was known, so happy to see it being addressed. |
|
The old array formatting without all those line breaks was nicer. The shorter descriptions are a step in the right direction, but they still don't communicate why that is a useful thing to be testing.
Why are we not testing "1 each of the first 3 books and 2 copies of books four and five"? |
|
Try and remember to include a link to the problem description when discussing canonical-data files: |
robkeim
left a comment
There was a problem hiding this comment.
I know it's a matter of style, but personally I find this use of vertical space harder to read than the previous version where all of the books in a basket were on the same line.
From a functional standpoint it looks good, and I like the shortened descriptions.
|
I'm with @robkeim here. The vertical grouping is significantly less readable to me. The descriptions themselves look good to me. |
Cleaned up the vertical spacing that was caused by an online JSON editor I was trying. Introduced `"total"` above `"cases"` along with a `"description"`.
|
Much better |
|
Agreed. This looks great! |
Descriptions have been shortened so as to make the json nicer for automatic test generators, so test case functions do not end up being too long.