Skip to content

Commit 3412f75

Browse files
authored
Merge pull request #96 from msgpack/proper
Add property on float
2 parents 12790ba + 7686949 commit 3412f75

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/prop_msgpack.erl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@ prop_binary() ->
2222
oneof([fix_raw(), raw16(), raw32()]),
2323
pack_and_unpack(Binary)).
2424

25+
prop_float() ->
26+
?FORALL(
27+
Float,
28+
proper_types:float(),
29+
pack_and_unpack(Float)).
30+
2531
prop_primitive() ->
2632
?FORALL(
2733
PrimObj,
2834
oneof(primitive_types()),
2935
pack_and_unpack(PrimObj)).
3036

3137

32-
3338
%%% Helpers %%%
3439
pack_and_unpack(Obj) ->
3540
Bin = msgpack:pack(Obj),

0 commit comments

Comments
 (0)