more accurate reporting of failed tests

This commit is contained in:
alisdair sullivan 2013-03-04 14:45:08 -08:00
parent 24a3e1c017
commit 2f26f2e3e8

View file

@ -954,10 +954,8 @@ decode(JSON, Config) ->
catch
error:badarg -> {error, badarg}
end,
case Chunk == Incremental of
true -> Chunk;
_ -> erlang:error(badarg)
end.
Chunk == Incremental,
Chunk.
decode_test_() ->