Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add support for nested exception testing in Test/STM

Đang mở
#36 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@yogeshsajanikar đang làm issue này rồi.

Từ ngày 10/10/2022.

  • #35 của @yogeshsajanikar — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
haskell
Lĩnh vực
testing

Hướng nghiên cứu

Bắt đầu trong Test/STM.hs và xem xét trình sinh Expr cùng trình đánh giá, sau đó kiểm tra PR #35 được liên kết để xem công việc đang được thực hiện. Công việc được xem là hoàn tất khi việc đánh giá ngoại lệ lồng nhau hỗ trợ nhiều giá trị ngoại lệ, bao gồm một kiểu ngoại lệ riêng cho các kiểm tra kiểu của handler và thực thi các kịch bản đã sinh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Haskell
Star
57
Fork
25
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IntersectMBO/io-sim

Tất cả issue của IntersectMBO/io-sim

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.