Correct an afternm bug in the test cases.

This commit is contained in:
Jesper Louis Andersen 2015-02-22 14:38:26 +01:00
parent 50b0058335
commit 69051e1803

View File

@ -231,7 +231,7 @@ prop_afternm_correct() ->
false -> false ->
try enacl:box_afternm(Msg, Nonce, Key) of try enacl:box_afternm(Msg, Nonce, Key) of
CipherText -> CipherText ->
try enacl:box_open_afternm(Msg, Nonce, Key) of try enacl:box_open_afternm(CipherText, Nonce, Key) of
{ok, _M} -> false; {ok, _M} -> false;
{error, failed_validation} -> false {error, failed_validation} -> false
catch catch