Skip to content

Commit

Permalink
Merge pull request #96 from msgpack/proper
Browse files Browse the repository at this point in the history
Add property on float
  • Loading branch information
kuenishi authored Sep 17, 2023
2 parents 12790ba + 7686949 commit 3412f75
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 3412f75

Please sign in to comment.