{"image_url":null,"blog_url":"https://mzp.hatenadiary.org/","provider_name":"Hatena Blog","width":"100%","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","type":"rich","categories":["Haskell","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e94\u3002QuickCheck\u3092\u8a66\u3059\u3002 \u540c\u3058\u304f\u3001\u4ed5\u69d8\u306b\u57fa\u3065\u3044\u305f\u30c6\u30b9\u30c8\u3092\u884c\u306a\u3046\u3089\u3057\u3044RSpec\u306e\u53c2\u8003\u306b\u306a\u308b\u304b\u306a\u3001\u3068\u601d\u3063\u3066\u3002 \u3044\u3044\u3088\u3001\u3053\u308c\u3002\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u81ea\u52d5\u3067\u4f5c\u3089\u308c\u308b\u306e\u306f\u3001\u65b0\u9bae\u3002 \u4f7f\u3044\u65b9 \u4f8b\u3048\u3070\u3001length\u304c\u6e80\u3057\u3066\u3044\u308b\u3079\u304d\u6027\u8cea\u3092\u95a2\u6570\u3067\u8a18\u8ff0\u3059\u308b\u3002 pLengthApp:: [Int]->[Int]->Bool pLengthApp xs ys = myLength (xs++ys) == (myLength xs) + (myLength ys) \u305d\u3057\u3066\u3001\u3053\u308c\u3092quickCheck\u306b\u6e21\u3059\u3002 *Main > quickCheck pLengthApp OK, passed 100\u2026","author_name":"mzp","author_url":"https://blog.hatena.ne.jp/mzp/","version":"1.0","url":"https://mzp.hatenadiary.org/entry/20070729/quick","title":"QuickCheck\u3092\u8a66\u3059","published":"2007-07-29 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20070729%2Fquick\" title=\"QuickCheck\u3092\u8a66\u3059 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","height":"190"}