problem-specifications icon indicating copy to clipboard operation
problem-specifications copied to clipboard

Clarify Series errors in README

Open iHiD opened this issue 1 year ago • 2 comments

Not set on the wording, or which cases we should cover, but putting this here so it can be riffed on by maintainers.

Forum discussion: http://forum.exercism.org/t/series-problem-description-unclear/12477

iHiD avatar Aug 13 '24 10:08 iHiD

Perhaps

The series length `n` must not be longer than the string of digits.
Trying to extract a 6-digit series from a 5-digit string should result in an error.

glennj avatar Aug 13 '24 12:08 glennj

Old PR. Should we move it forward?

Simply by looking at the canonical data, it appears that there are even more cases where an error is expected:

  • slice length cannot be zero
  • slice length cannot be negative
  • empty series is invalid

So, it's best to either mention all cases explicitly or remove any reference to errors from the description altogether, which seems more reasonable to me.

tasxatzial avatar Dec 04 '24 20:12 tasxatzial