exercism / exercism/problem-specifications

armstrong-numbers: Inaccurate test/description

未关闭
#1,498 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
correctness
主要语言
Ruby
星标
358
派生
563
平均合并
18 小时 41 分钟
30 天内合并 PR
2

描述

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.

https://github.com/exercism/problem-specifications/blob/ca9c09eda445e642317a043bf9c949fbffae4020/exercises/armstrong-numbers/canonical-data.json#L14-L20

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`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。