Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doAssertRaises cannot handle IndexDefect with goto exceptions #20026

Closed
ringabout opened this issue Jul 14, 2022 · 0 comments · Fixed by #20864
Closed

doAssertRaises cannot handle IndexDefect with goto exceptions #20026

ringabout opened this issue Jul 14, 2022 · 0 comments · Fixed by #20864

Comments

@ringabout
Copy link
Member

ringabout commented Jul 14, 2022

var x = "123"

doAssertRaises(IndexDefect):
  discard x[0..99]

gives with Orc or goto exceptions

Error: unhandled exception: expected raising 'IndexDefect', instead nothing was raised by:
discard x[0 .. 99] [AssertionDefect]

ref #19972

@ringabout ringabout self-assigned this Nov 17, 2022
Araq pushed a commit that referenced this issue Nov 22, 2022
* marks system procs which can raise defects

* add tests

* add more systemRaisesDefect

* add comment
survivorm pushed a commit to survivorm/Nim that referenced this issue Feb 28, 2023
…-lang#20864)

* marks system procs which can raise defects

* add tests

* add more systemRaisesDefect

* add comment
capocasa pushed a commit to capocasa/Nim that referenced this issue Mar 31, 2023
…-lang#20864)

* marks system procs which can raise defects

* add tests

* add more systemRaisesDefect

* add comment
bung87 pushed a commit to bung87/Nim that referenced this issue Jul 29, 2023
…-lang#20864)

* marks system procs which can raise defects

* add tests

* add more systemRaisesDefect

* add comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment