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

Add support for nested exception testing in Test/STM #36

Open
1 task
yogeshsajanikar opened this issue Oct 11, 2022 · 0 comments · May be fixed by #35
Open
1 task

Add support for nested exception testing in Test/STM #36

yogeshsajanikar opened this issue Oct 11, 2022 · 0 comments · May be fixed by #35
Labels
enhancement New feature or request io-sim Issues / PRs related to io-sim

Comments

@yogeshsajanikar
Copy link
Contributor

yogeshsajanikar commented Oct 11, 2022

Is your feature request related to a problem? Please describe.
Test/STM.hs contains a toy DSL which can be evaluated in a pure as well as the STM context. It is used to test the correctness of the io-sim STM implementation. The PR #16 implements the support for MonadCatch. However, the test code does not have support for nested exceptions. Adding a support for nested exception evaluation in Test/STM will make it a complete.

Describe the solution you'd like

  • Add a support for multiple exception values (Currently ImmValue is treated as an exception type).
  • Add another exception type (E.g. ImmValueException so that catch handler can do a type check).
  • Make necessary changes to Expr generator and Expr evaluation.

Describe alternatives you've considered

  • Write a test which runs in io-sim and io and has nested exception. However, it will be a unit test and will not test various scenarios when a test is generated through Expr generator.

Additional context
NA

Are you willing to implement it?

  • Are you? 😃 - Already started working on it.
@yogeshsajanikar yogeshsajanikar added the enhancement New feature or request label Oct 11, 2022
@yogeshsajanikar yogeshsajanikar self-assigned this Oct 11, 2022
@yogeshsajanikar yogeshsajanikar linked a pull request Oct 11, 2022 that will close this issue
@coot coot added the io-sim Issues / PRs related to io-sim label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request io-sim Issues / PRs related to io-sim
Projects
No open projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants