2010-07-22から1日間の記事一覧
こんなテストケース(test.hs)があるとします。 module Main where import Test.HUnit test1 = TestCase (assertEqual "アサーションのラベル" "期待値" "実際の値") tests = TestList [TestLabel "テストのラベル" test1] これを走らせると: Prelude> :lo…
こんなテストケース(test.hs)があるとします。 module Main where import Test.HUnit test1 = TestCase (assertEqual "アサーションのラベル" "期待値" "実際の値") tests = TestList [TestLabel "テストのラベル" test1] これを走らせると: Prelude> :lo…