We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4d2a23 commit c77a1c3Copy full SHA for c77a1c3
1 file changed
test/msgpack_ext_example_tests.erl
@@ -94,4 +94,7 @@ ext_typecode_range_test() ->
94
Result = msgpack:unpack(Encoded, Opt),
95
?assertMatch({ok, N}, Result)
96
end || N <- lists:seq(TypecodeMin,TypecodeMax)],
97
+ %% using codes outside the allowed range should fail:
98
+ [?assertError({case_clause, _}, msgpack:pack({thing, N}, Opt))
99
+ || N <- [-129, 128]],
100
ok.
0 commit comments