[erlang-questions] Installing EUnit

Jayson Barley jayson.barley@REDACTED
Tue May 28 23:22:41 CEST 2013


It comes with Erlang by default.

You should be able to run the following tests.


-module(io_lib_tests).
-include_lib("eunit/include/eunit.hrl").

fread_stringint_int_test() ->
    String = "5",
    {ok, [Res], _Rest} = io_lib:fread("~1d", String),
    ?assertEqual(5, Res).

fread_stringint_rest_test() ->
    String = "54321",
    {ok, _Ret, Res} = io_lib:fread("~1d", String),
    ?assertEqual("4321", Res).


On Tue, May 28, 2013 at 2:17 PM, Andrew Pennebaker <
andrew.pennebaker@REDACTED> wrote:

> Does EUnit come with Erlang/OTP by default, or should I try to install it
> through CEAN, etc.?
>
> --
> Cheers,
>
> Andrew Pennebaker
> www.yellosoft.us
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130528/f34f7ad5/attachment.htm>


More information about the erlang-questions mailing list