An option value that is neither a number nor the keyword is rejected

All 2 scenarios hold

The message repeats the value it could not read and names what it would have accepted. A value that does read as a number but is out of range is the shallowest depth rule above, not this one.

expected outcome broken scenario
ScenarioInputError message?
A word that is not onefooInvalid index depth: 'foo'. Expected a positive integer or 'infinite'.
A number written outoneInvalid index depth: 'one'. Expected a positive integer or 'infinite'.