[erlang-questions] eunit question

Kostis Sagonas kostis@REDACTED
Tue Nov 3 02:33:04 CET 2015

On 11/03/2015 02:21 AM, Michael Martin wrote:
> I'm a bit perplexed about this one. eunit is giving me an "unexpected
> success" when testing a function with guards.
> The source code and the output from ./rebar eu are attached.
> Any insight would be greatly appreciated.
> -spec test1(map(), binary()) -> map().
> test1(Data, Argument) when is_map(Data); is_binary(Argument) ->

You most likely want to put a ',' instead of a ';' in the guard.


More information about the erlang-questions mailing list