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:
Etan Kissling 2024-02-17 20:31:52 +01:00 committed by GitHub
parent 5a792e762f
commit 1662762c01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)