Fix svnignore in the examples subdirectory.
[ocaml-bitstring.git] / tests / 06_ints2.ml
index c0bd76e..3587b4a 100644 (file)
@@ -1,13 +1,13 @@
 (* Extract some simple integers.
- * $Id: 06_ints2.ml,v 1.1 2008-04-01 08:56:43 rjones Exp $
+ * $Id: 06_ints2.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 : 2; n1 : 2; n2 : 2; n3 : 2; n4 : 2; n5 : 2; n6 : 2; n7 : 2;
-    rest : -1 : bitstring ->
+  | n0 : 2; n1 : 2; n2 : 2; n3 : 2; n4 : 2; n5 : 2; n6 : 2; n7 : 2;
+      rest : -1 : bitstring } ->
       assert (n0 = 0x3); (* 0xc *)
       assert (n1 = 0x0);
       assert (n2 = 0x3); (* 0xf *)
@@ -20,5 +20,5 @@ let () =
       let _, off, len = rest in
       assert (off = 16 && len = 0) (* no further data *)
 
-  | _ ->
+  | { _ } ->
       failwith "error: did not match\n"