Slide 6
Slide 6 text
Getting Started
Failing Assertion
Make the test fail!
truth_test() ->
?assert(false).
Run eunit
3> c(mytests), eunit:test(mytests).
mytests: truth_test (module ’mytests’)...*failed*
in function mytests:’-truth_test/0-fun-0-’/0 (mytests.erl, l
**error:{assertion_failed,[{module,mytests},
{line,6},
{expression,"false"},
{expected,true},
{value,false}]}
Sean Cribbs Getting Started with eunit 2014-03-26 Wed 6 / 23