From 1662762c0144854db60632e4115fe596ffa67fca Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Sat, 17 Feb 2024 20:31:52 +0100 Subject: [PATCH] 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. --- tests/ranges/tstackarrays.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)