Skip to content

armstrong-numbers: Inaccurate test/description #1498

Open
@srbry

Description

@srbry

The armstrong-numbers description of There are no 2 digit Armstrong numbers and the test data of 10 don't quite line up. The tests would happily pass if 11 was detected as an armstrong number even though it would be incorrect.

"description": "There are no 2 digit Armstrong numbers",
"property": "isArmstrongNumber",
"input": {
"number": 10
},
"expected": false
},

I would suggest that the ideal solution is to actually have tests that assert on the entire range of 2 digit numbers to make the tests accurate to the description, although the simplest possible thing might be just adjusting the description to be more specific to the test case. Two digit number that is not an Armstrong number

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions