Skip to content

Commit 33667ce

Browse files
[armstrong-numbers] Two new test cases (#2080)
* [armstrong-numbers] Two new test cases Someone look over my shoulder... first use of configlet. :) Please see: exercism/raku#540 (comment) * Add warning comment about numeric sizes * Adjust comments field to an array * Removed trailing spaces and colons * Added big-integers scenario and whitespace linting * Change scenarios from plural to singular * Remove whitespace around scenarios
1 parent fd0be76 commit 33667ce

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

exercises/armstrong-numbers/canonical-data.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,32 @@
8181
"number": 9926314
8282
},
8383
"expected": false
84+
},
85+
{
86+
"uuid": "5ee2fdf8-334e-4a46-bb8d-e5c19c02c148",
87+
"description": "Armstrong number containing seven zeroes",
88+
"comments": [
89+
"The numeric size of this input number is 108 bits. Consider skipping this test if appropriate."
90+
],
91+
"scenarios": ["big-integer"],
92+
"property": "isArmstrongNumber",
93+
"input": {
94+
"number": 186709961001538790100634132976990
95+
},
96+
"expected": true
97+
},
98+
{
99+
"uuid": "12ffbf10-307a-434e-b4ad-c925680e1dd4",
100+
"description": "The largest and last Armstrong number",
101+
"comments": [
102+
"The numeric size of this input number is 127 bits. Consider skipping this test if appropriate."
103+
],
104+
"scenarios": ["big-integer"],
105+
"property": "isArmstrongNumber",
106+
"input": {
107+
"number": 115132219018763992565095597973971522401
108+
},
109+
"expected": true
84110
}
85111
]
86112
}

0 commit comments

Comments
 (0)