ollef/sixten

Expected error tests

Open

#111 建立於 2018年6月14日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Haskell (24 fork)batch import
Beginner-friendlyHelp wantedType: Feature

倉庫指標

Star
 (631 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

We currently have the setup to test that some error occurred during compilation, but we don't test that it's the correct error (other than syntax vs type error) or that it occurs on the correct line.

It'd be nice to be able to annotate source files for testing with expected errors in comments, something like:

x = addInt 1 True -- $expect: Type error: Type mismatch

and then have the setup to verify that that error really occurs there.

貢獻者指南