Skip to content

Commit

Permalink
Add test. Negative numbers are not armstrong numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmaggi committed Sep 30, 2023
1 parent 430e45b commit 7190a88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exercises/armstrong-numbers/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@
"number": 115132219018763992565095597973971522401
},
"expected": true
},
{
"uuid": "fbd65dc1-a0a4-4af4-9349-edef43c0808b",
"description": "Negative numbers are not Armstrong numbers",
"property": "isArmstrongNumber",
"input": {
"number": -1
},
"expected": false
}
]
}

0 comments on commit 7190a88

Please sign in to comment.