X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tests%2F06_ints1.ml;h=962f83eac8d39a5e2ac03bf10102459e5e68df89;hb=caffff12b3ece8197627c60105afa16a35822c32;hp=5a49bff2d71643042a0eef84080c6e56970e3a75;hpb=65d01f251b91df36445216d1a44d8f2d6cc4fd8d;p=ocaml-bitstring.git diff --git a/tests/06_ints1.ml b/tests/06_ints1.ml index 5a49bff..962f83e 100644 --- a/tests/06_ints1.ml +++ b/tests/06_ints1.ml @@ -1,13 +1,13 @@ (* Extract some simple integers. - * $Id: 06_ints1.ml,v 1.1 2008-04-01 08:56:43 rjones Exp $ + * $Id: 06_ints1.ml,v 1.2 2008-04-25 11:08:43 rjones Exp $ *) let bits = Bitmatch.make_bitstring 16 '\xcf' (* makes the string 0xcfcf *) let () = bitmatch bits with - | n0 : 4; n1 : 4; n2 : 4; n3 : 4; - rest : -1 : bitstring -> + | { n0 : 4; n1 : 4; n2 : 4; n3 : 4; + rest : -1 : bitstring } -> assert (n0 = 0xc); assert (n1 = 0xf); assert (n2 = 0xc); @@ -16,5 +16,5 @@ let () = let _, off, len = rest in assert (off = 16 && len = 0) (* no further data *) - | _ -> + | { _ } -> failwith "error: did not match\n"