wip purpose sizeof

This commit is contained in:
swrup 2025-10-07 12:02:16 +02:00
parent 6ef34b8fe7
commit e5045c2e52
2 changed files with 40 additions and 7 deletions

View file

@ -71,3 +71,14 @@ let () =
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);
()