Skip to content

Instantly share code, notes, and snippets.

@wang-zhijun
Created May 11, 2016 07:03
Show Gist options
  • Save wang-zhijun/e17ba9bfb3596661e629bda432241169 to your computer and use it in GitHub Desktop.
Save wang-zhijun/e17ba9bfb3596661e629bda432241169 to your computer and use it in GitHub Desktop.
EUnit

EUnitとは、最も簡単に言えば、モジュール内の _test() で終わる関数を単体テストと想定して、それらを自動で走らせる. eunit:test(<Module>)は必要なもの。

1> c(calc)
1> .
{ok,calc}
2> eunit:test(calc).
  Test passed.
ok
3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment