Skip to content

Commit

Permalink
grains: Be more verbose in test-level descriptions (#1707)
Browse files Browse the repository at this point in the history
The top-level `description` of these cases was:
```
  "description": "returns the number of grains on the square",
```
but each test-level `description` contained only a number.

The comments in `tests.toml` are generated only from the test-level
`description`, and so the comments there will now be more informative
than the previously seen:
```
# 1
"9fbde8de-36b2-49de-baf2-cd42d6f28405" = true

# 2
"ee1f30c2-01d8-4298-b25d-c677331b5e6d" = true
```
  • Loading branch information
ee7 authored Oct 15, 2020
1 parent fcbc251 commit 426b93d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions exercises/grains/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cases": [
{
"uuid": "9fbde8de-36b2-49de-baf2-cd42d6f28405",
"description": "1",
"description": "grains on square 1",
"property": "square",
"input": {
"square": 1
Expand All @@ -19,7 +19,7 @@
},
{
"uuid": "ee1f30c2-01d8-4298-b25d-c677331b5e6d",
"description": "2",
"description": "grains on square 2",
"property": "square",
"input": {
"square": 2
Expand All @@ -28,7 +28,7 @@
},
{
"uuid": "10f45584-2fc3-4875-8ec6-666065d1163b",
"description": "3",
"description": "grains on square 3",
"property": "square",
"input": {
"square": 3
Expand All @@ -37,7 +37,7 @@
},
{
"uuid": "a7cbe01b-36f4-4601-b053-c5f6ae055170",
"description": "4",
"description": "grains on square 4",
"property": "square",
"input": {
"square": 4
Expand All @@ -46,7 +46,7 @@
},
{
"uuid": "c50acc89-8535-44e4-918f-b848ad2817d4",
"description": "16",
"description": "grains on square 16",
"property": "square",
"input": {
"square": 16
Expand All @@ -55,7 +55,7 @@
},
{
"uuid": "acd81b46-c2ad-4951-b848-80d15ed5a04f",
"description": "32",
"description": "grains on square 32",
"property": "square",
"input": {
"square": 32
Expand All @@ -64,7 +64,7 @@
},
{
"uuid": "c73b470a-5efb-4d53-9ac6-c5f6487f227b",
"description": "64",
"description": "grains on square 64",
"property": "square",
"input": {
"square": 64
Expand Down

0 comments on commit 426b93d

Please sign in to comment.