Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add support for nested exception testing in Test/STM

オープン
#36 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@yogeshsajanikar がすでに取り組んでいます。

2022年10月10日 から。

  • #35 @yogeshsajanikar による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
haskell
領域
testing

調査の方向性

Test/STM.hs から始めて Expr のジェネレーターと評価器を確認し、次にリンクされている PR #35 で進行中の作業を確認してください。ネストした例外の評価が複数の例外値をサポートし、ハンドラーの型チェック用に独立した例外型を含み、生成されたシナリオを実行すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement io-sim

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.
主要言語
Haskell
スター
57
フォーク
25
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntersectMBO/io-sim のほかの issue

IntersectMBO/io-sim の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。