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
| Scenario | Input | Error message? |
|---|---|---|
| A word that is not one | foo | Invalid index depth: 'foo'. Expected a positive integer or 'infinite'. |
| A number written out | one | Invalid index depth: 'one'. Expected a positive integer or 'infinite'. |