Or just use `range`. The fixed-size performance penalty will be forgiven for unit tests. ;)