1 (* Test a simple constructor.
2 * $Id: 10_constr1.ml,v 1.2 2008-04-25 11:08:43 rjones Exp $
5 let bits = BITSTRING { 0xc : 4; 0xf : 4; 0xc : 4; 0xf : 4 } ;;
7 assert (bits = Bitmatch.make_bitstring 16 '\xcf') ;;
11 | { n0 : 4; n1 : 4; n2 : 4; n3 : 4;
12 rest : -1 : bitstring } ->
18 let _, off, len = rest in
19 assert (off = 16 && len = 0) (* no further data *)
22 failwith "error: did not match\n"