This commit is contained in:
parent
5c204d526f
commit
6f745c210f
1 changed files with 11 additions and 0 deletions
11
test/test.ml
11
test/test.ml
|
|
@ -71,3 +71,14 @@ let () =
|
||||||
check_bad "\"foo\" ,";
|
check_bad "\"foo\" ,";
|
||||||
check_bad ", \"foo\"";
|
check_bad ", \"foo\"";
|
||||||
()
|
()
|
||||||
|
|
||||||
|
let () =
|
||||||
|
let open Binary_formats.Withdraw_confirmation_ps in
|
||||||
|
let str64 = String.make 64 '0' in
|
||||||
|
let dummy_t =
|
||||||
|
{ h_planchets= { hash= { hash= str64 } }; noreveal_index= 0_l }
|
||||||
|
in
|
||||||
|
let size' = Bin.size_of_value bin dummy_t |> Option.get in
|
||||||
|
assert (size = size');
|
||||||
|
assert (size = 76);
|
||||||
|
()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue