-1
大多数单元测试框架支持在断言中有一个字符串,当断言失败时它会被打印出来。到目前为止,我在榆树测试中看不到这种能力?(!)elm-test期望打印信息失败?
大多数单元测试框架支持在断言中有一个字符串,当断言失败时它会被打印出来。到目前为止,我在榆树测试中看不到这种能力?(!)elm-test期望打印信息失败?
onFail
函数能够给出任何其他期望的自定义失败消息。来自文档:
"something"
|> Expect.equal "something else"
|> Expect.onFail "thought those two strings would be the same"