<div dir="ltr"><div>Hi, Michael</div><div><br></div>No-no-no, you shouldn't change them all to commas!<div>They are different - comma act as AND, while semicolon act as OR. Good luck!</div><div><br></div><div>Gleb</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-03 7:27 GMT+06:00 Michael Martin <span dir="ltr"><<a href="mailto:mmartin4242@gmail.com" target="_blank">mmartin4242@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, Kostis, that fixed it.<br>
Very strange, though, as all my other functions have a ';' rather than a ',', and they all work.<br>
I'm changing them all to commas now.<br>
<br>
Thanks again!<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 11/02/2015 07:33 PM, Kostis Sagonas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 11/03/2015 02:21 AM, Michael Martin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm a bit perplexed about this one. eunit is giving me an "unexpected<br>
success" when testing a function with guards.<br>
The source code and the output from ./rebar eu are attached.<br>
Any insight would be greatly appreciated.<br>
<br>
-spec test1(map(), binary()) -> map().<br>
<br>
test1(Data, Argument) when is_map(Data); is_binary(Argument) -><br>
</blockquote>
<br>
You most likely want to put a ',' instead of a ';' in the guard.<br>
<br>
Kostis<br>
</blockquote>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>