<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>emacs</anon>
    <anon>test</anon>
    <anon>memo</anon>
  </categories>
  <description>ertを使ってelispのunittestを書く方法のメモ。ertは標準で添付されているのでインストールは不要（なはず）。 使いかた 以下のような関数を定義しておく（テスト対象） (defun my:add (x y) (+ x y)) テストを書く。 (require 'ert) (ert-deftest add20 () (should (= 20 (my:add 10 10))) ) テストを実行する (M-x eval-buffer) M-x ert ertのdefaultのtは全てのテストを実行するという意味。勝手にテストを読み込んでくれないので書いたテストを読み込んであげる必要があ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2019%2F01%2F07%2F052423&quot; title=&quot;ertを使ってelispのunittestを書く方法のメモ - podhmo&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-07 05:24:23</published>
  <title>ertを使ってelispのunittestを書く方法のメモ</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2019/01/07/052423</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
