{"title":"\u5f0f\u3092\u5f0f\u306e\u307e\u307e\u53d7\u3051\u53d6\u308a\u5de6\u8fba\u3068\u53f3\u8fba\u3092\u5225\u3005\u306b\u8a55\u4fa1\u3059\u308b","blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","categories":["Elixir","Prolog"],"published":"2018-01-29 21:18:56","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F2018%2F01%2F29%2F211856\" title=\"\u5f0f\u3092\u5f0f\u306e\u307e\u307e\u53d7\u3051\u53d6\u308a\u5de6\u8fba\u3068\u53f3\u8fba\u3092\u5225\u3005\u306b\u8a55\u4fa1\u3059\u308b - \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","type":"rich","url":"https://blog.emattsan.org/entry/2018/01/29/211856","author_name":"E_Mattsan","width":"100%","blog_url":"https://blog.emattsan.org/","author_url":"https://blog.hatena.ne.jp/E_Mattsan/","image_url":null,"provider_url":"https://hatena.blog","version":"1.0","description":"Elixir \u306e\u30c6\u30b9\u30c8\u306e assert \u306f\u5f15\u6570\u304c\u4e00\u3064\u3067\u3001\u4e00\u3064\u306e\u5f0f\u3092\u4e0e\u3048\u308b\u306e\u3067\u3059\u304c\u3001\u5de6\u8fba\u3068\u53f3\u8fba\u306e\u305d\u308c\u305e\u308c\u306e\u5024\u3092\u628a\u63e1\u3057\u3066\u3044\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3002 \u9069\u5f53\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001 $ mix new foo $ cd foo \u30c6\u30b9\u30c8\u3092\u3053\u3093\u306a\u98a8\u306b\u66f8\u3044\u3066\u3001 # test/foo_test.exs defmodule FooTest do use ExUnit.Case test \"1 + 2 == 4 ...?\" do assert 1 + 2 == 4 end end \u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001 $ mix test 1) test 1 + 2 == 4 ...? (FooTest) test/foo_test.\u2026"}