diff --git a/tests/ranges/tstackarrays.nim b/tests/ranges/tstackarrays.nim index 76da7d8..ddfab1c 100644 --- a/tests/ranges/tstackarrays.nim +++ b/tests/ranges/tstackarrays.nim @@ -32,7 +32,7 @@ suite "Stack arrays": arr[^1] == 6 cast[ptr int](offset(addr arr[0], 5))[] == 10 - test "Allocating with a negative size throws a RangeError": + test "Allocating with a negative size throws a RangeDefect": expect RangeDefect: discard allocStackArray(string, -1)