From a6682de0045468ae1d15afbd2fd5378960e15eb7 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 12 Mar 2020 23:44:33 +0100 Subject: catchable defects (#13626) * allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly --- tests/range/tsubrange2.nim | 2 +- tests/range/tsubrange3.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/range') diff --git a/tests/range/tsubrange2.nim b/tests/range/tsubrange2.nim index e0fb71c5f..1b90b52c7 100644 --- a/tests/range/tsubrange2.nim +++ b/tests/range/tsubrange2.nim @@ -1,5 +1,5 @@ discard """ - outputsub: "value out of range: 50 [RangeError]" + outputsub: "value out of range: 50 notin 0 .. 40 [RangeError]" exitcode: "1" """ diff --git a/tests/range/tsubrange3.nim b/tests/range/tsubrange3.nim index d3aae87df..ba9e6a143 100644 --- a/tests/range/tsubrange3.nim +++ b/tests/range/tsubrange3.nim @@ -1,5 +1,5 @@ discard """ - outputsub: "value out of range: 50 [RangeError]" + outputsub: "value out of range: 50 notin 0 .. 40 [RangeError]" exitcode: "1" """ -- cgit 1.4.1-2-gfad0