refacto: Purpose.make_bin

This commit is contained in:
swrup 2025-10-07 23:45:07 +02:00
parent 378e9208a2
commit f89cf65259
2 changed files with 30 additions and 51 deletions

View file

@ -76,8 +76,7 @@ let () =
let open Binary_formats.WithdrawConfirmationPS in
let str64 = String.init 64 (fun i -> Char.unsafe_chr (i + 1)) in
let dummy_t = { h_planchets= { v= { v= str64 } }; noreveal_index= 0_l } in
let size' = Bin.size_of_value bin dummy_t |> Option.get in
assert (size = size');
let size = Bin.size_of_value bin dummy_t |> Option.get in
assert (size = 76);
(* for cmp test with signatures.c output *)