{"type":"rich","version":"1.0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2019%2F01%2F07%2F052423\" title=\"ert\u3092\u4f7f\u3063\u3066elisp\u306eunittest\u3092\u66f8\u304f\u65b9\u6cd5\u306e\u30e1\u30e2 - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"podhmo","blog_title":"podhmo's diary","categories":["emacs","test","memo"],"provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://pod.hatenablog.com/","published":"2019-01-07 05:24:23","height":"190","description":"ert\u3092\u4f7f\u3063\u3066elisp\u306eunittest\u3092\u66f8\u304f\u65b9\u6cd5\u306e\u30e1\u30e2\u3002ert\u306f\u6a19\u6e96\u3067\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4e0d\u8981\uff08\u306a\u306f\u305a\uff09\u3002 \u4f7f\u3044\u304b\u305f \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304f\uff08\u30c6\u30b9\u30c8\u5bfe\u8c61\uff09 (defun my:add (x y) (+ x y)) \u30c6\u30b9\u30c8\u3092\u66f8\u304f\u3002 (require 'ert) (ert-deftest add20 () (should (= 20 (my:add 10 10))) ) \u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b (M-x eval-buffer) M-x ert ert\u306edefault\u306et\u306f\u5168\u3066\u306e\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3002\u52dd\u624b\u306b\u30c6\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u304f\u308c\u306a\u3044\u306e\u3067\u66f8\u3044\u305f\u30c6\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u2026","title":"ert\u3092\u4f7f\u3063\u3066elisp\u306eunittest\u3092\u66f8\u304f\u65b9\u6cd5\u306e\u30e1\u30e2","width":"100%","author_url":"https://blog.hatena.ne.jp/podhmo/","url":"https://pod.hatenablog.com/entry/2019/01/07/052423"}