hello_eunit.erl (309B)
1 -module(hello_eunit). 2 -include_lib("eunit/include/eunit.hrl"). 3 -include("hello.hrl"). 4 5 example_test_() -> 6 [ 7 ?_assert(hello:say_hello(waf) =:= "Hello WAF, cool to see you!"), 8 ?_assert(hello:say_hello(make) =:= "Oh Make, you again..."), 9 ?_assert(hello:say_hello("Mike") =:= "Hi Mike") 10 ].