rename `RangeError` -> `RangeDefect` in test name (#214)
The `Allocating with a negative size throws a RangeError` test actually tests for `RangeDefect`, so rename the test accordingly.
This commit is contained in:
parent
5a792e762f
commit
1662762c01
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue