Persimmon icon indicating copy to clipboard operation
Persimmon copied to clipboard

文字列から'Tを生成する関数

Open bleis-tift opened this issue 9 years ago • 0 comments

エラーメッセージをカスタマイズする際に、文字列から元の型が取り出せると便利。

replaceViolatedMessagereplacer

let myReplacer msg =
  let expected, actual = AssertEqualsReader.read<Hoge> msg
  // expectedとactualを使って新しいエラー文字列を構築

bleis-tift avatar Dec 28 '15 09:12 bleis-tift