summary refs log tree commit diff stats
path: root/tests/stdlib/tstrutil.nim
diff options
context:
space:
mode:
authorfenekku <fenekku@fenekku.com>2017-02-17 02:26:49 -0500
committerAndreas Rumpf <rumpf_a@web.de>2017-02-17 08:26:49 +0100
commite9767d8809a0ff4df83ffff1836937db3c2885bf (patch)
treeb38c9aef7409dd265577325dcd8c322120ff5317 /tests/stdlib/tstrutil.nim
parent9534a5d6328e6e4df94d4a8f038a388dfdf56c49 (diff)
downloadNim-e9767d8809a0ff4df83ffff1836937db3c2885bf.tar.gz
Fix reverse on empty openArray (#5407)
Reversing an empty `openArray` would raise a RangeError. For instance for `a: seq[int] = @[]`, we have `a.high` return `-1` but `-1` is not a `Natural`. Leaving the array as-is is the expected behaviour.
Diffstat (limited to 'tests/stdlib/tstrutil.nim')
0 files changed, 0 insertions, 0 deletions
15' href='#n115'>115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167