<div dir="ltr">It comes with Erlang by default. <br><br>You should be able to run the following tests.<br><br><br>-module(io_lib_tests).<br>-include_lib("eunit/include/eunit.hrl").<br><br>fread_stringint_int_test() -><br>
String = "5",<br> {ok, [Res], _Rest} = io_lib:fread("~1d", String),<br> ?assertEqual(5, Res).<br><br>fread_stringint_rest_test() -><br> String = "54321",<br> {ok, _Ret, Res} = io_lib:fread("~1d", String),<br>
?assertEqual("4321", Res).<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 2:17 PM, Andrew Pennebaker <span dir="ltr"><<a href="mailto:andrew.pennebaker@gmail.com" target="_blank">andrew.pennebaker@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Does EUnit come with Erlang/OTP by default, or should I try to install it through CEAN, etc.?<span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br></div>-- <br><div></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>
</font></span></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>