Skip to content

Commit

Permalink
armstrong-numbers: Add hyphens in descriptions
Browse files Browse the repository at this point in the history
This commit adds 8 test cases, each different only in the wording of
"n-digit". They each add one hyphen, like "three digit" ->
"three-digit", and one of them does "2 digit" -> "two-digit".

Example old:
  "description": "There are no 2 digit Armstrong numbers",
New:
  "description": "There are no two-digit Armstrong numbers",
  • Loading branch information
ee7 committed Oct 13, 2020
1 parent 126568d commit 80b4423
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions exercises/armstrong-numbers/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
},
"expected": true
},
{
"uuid": "dc1db938-bd03-4aa7-96ad-e3b872bae3ed",
"description": "Single-digit numbers are Armstrong numbers",
"comments": ["Added hyphen"],
"reimplements": "579e8f03-9659-4b85-a1a2-d64350f6b17a",
"property": "isArmstrongNumber",
"input": {
"number": 5
},
"expected": true
},
{
"uuid": "2d6db9dc-5bf8-4976-a90b-b2c2b9feba60",
"description": "There are no 2 digit Armstrong numbers",
Expand All @@ -28,6 +39,17 @@
},
"expected": false
},
{
"uuid": "947a867a-943e-465f-b3f8-24f7973c97df",
"description": "There are no two-digit Armstrong numbers",
"comments": ["Added hyphen and made wording consistent"],
"reimplements": "2d6db9dc-5bf8-4976-a90b-b2c2b9feba60",
"property": "isArmstrongNumber",
"input": {
"number": 10
},
"expected": false
},
{
"uuid": "509c087f-e327-4113-a7d2-26a4e9d18283",
"description": "Three digit number that is an Armstrong number",
Expand All @@ -37,6 +59,17 @@
},
"expected": true
},
{
"uuid": "0c02b5cc-4cfc-49a2-bf45-332eb196c2ab",
"description": "Three-digit number that is an Armstrong number",
"comments": ["Added hyphen"],
"reimplements": "509c087f-e327-4113-a7d2-26a4e9d18283",
"property": "isArmstrongNumber",
"input": {
"number": 153
},
"expected": true
},
{
"uuid": "7154547d-c2ce-468d-b214-4cb953b870cf",
"description": "Three digit number that is not an Armstrong number",
Expand All @@ -46,6 +79,17 @@
},
"expected": false
},
{
"uuid": "3ac3c16c-124e-4491-986e-31203754e7bd",
"description": "Three-digit number that is not an Armstrong number",
"comments": ["Added hyphen"],
"reimplements": "7154547d-c2ce-468d-b214-4cb953b870cf",
"property": "isArmstrongNumber",
"input": {
"number": 100
},
"expected": false
},
{
"uuid": "6bac5b7b-42e9-4ecb-a8b0-4832229aa103",
"description": "Four digit number that is an Armstrong number",
Expand All @@ -55,6 +99,17 @@
},
"expected": true
},
{
"uuid": "5fddc80d-cce3-4ae2-bd2d-9f324d9aee96",
"description": "Four-digit number that is an Armstrong number",
"comments": ["Added hyphen"],
"reimplements": "6bac5b7b-42e9-4ecb-a8b0-4832229aa103",
"property": "isArmstrongNumber",
"input": {
"number": 9474
},
"expected": true
},
{
"uuid": "eed4b331-af80-45b5-a80b-19c9ea444b2e",
"description": "Four digit number that is not an Armstrong number",
Expand All @@ -64,6 +119,17 @@
},
"expected": false
},
{
"uuid": "79559dfa-83c8-4ce1-b63d-e13ce4a31983",
"description": "Four-digit number that is not an Armstrong number",
"comments": ["Added hyphen"],
"reimplements": "eed4b331-af80-45b5-a80b-19c9ea444b2e",
"property": "isArmstrongNumber",
"input": {
"number": 9475
},
"expected": false
},
{
"uuid": "f971ced7-8d68-4758-aea1-d4194900b864",
"description": "Seven digit number that is an Armstrong number",
Expand All @@ -73,6 +139,17 @@
},
"expected": true
},
{
"uuid": "daae0979-86d5-480f-95f1-b1dedcc6c1d2",
"description": "Seven-digit number that is an Armstrong number",
"comments": ["Added hyphen"],
"reimplements": "f971ced7-8d68-4758-aea1-d4194900b864",
"property": "isArmstrongNumber",
"input": {
"number": 9926315
},
"expected": true
},
{
"uuid": "7ee45d52-5d35-4fbd-b6f1-5c8cd8a67f18",
"description": "Seven digit number that is not an Armstrong number",
Expand All @@ -81,6 +158,17 @@
"number": 9926314
},
"expected": false
},
{
"uuid": "6d4032ea-b6c9-45e2-b67b-84e741c4bd9b",
"description": "Seven-digit number that is not an Armstrong number",
"comments": ["Added hyphen"],
"reimplements": "7ee45d52-5d35-4fbd-b6f1-5c8cd8a67f18",
"property": "isArmstrongNumber",
"input": {
"number": 9926314
},
"expected": false
}
]
}

0 comments on commit 80b4423

Please sign in to comment.