Skip to content

Commit

Permalink
Add property on float
Browse files Browse the repository at this point in the history
  • Loading branch information
kuenishi committed Sep 17, 2023
1 parent 12790ba commit 7686949
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/prop_msgpack.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ prop_binary() ->
oneof([fix_raw(), raw16(), raw32()]),
pack_and_unpack(Binary)).

prop_float() ->
?FORALL(
Float,
proper_types:float(),
pack_and_unpack(Float)).

prop_primitive() ->
?FORALL(
PrimObj,
oneof(primitive_types()),
pack_and_unpack(PrimObj)).



%%% Helpers %%%
pack_and_unpack(Obj) ->
Bin = msgpack:pack(Obj),
Expand Down

0 comments on commit 7686949

Please sign in to comment.