X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tests%2F10_constr2.ml;fp=tests%2F10_constr2.ml;h=31af87f53329ce3dfc3bf166e9fdaf6e64ab9cfb;hb=32e908dd9ed02329bac0e40160304001442bda27;hp=0000000000000000000000000000000000000000;hpb=2fecbba3804b3788af08786e580483dac9a45294;p=ocaml-bitstring.git diff --git a/tests/10_constr2.ml b/tests/10_constr2.ml new file mode 100644 index 0000000..31af87f --- /dev/null +++ b/tests/10_constr2.ml @@ -0,0 +1,12 @@ +(* Test a simple constructor. + * $Id: 10_constr2.ml,v 1.1 2008-04-02 11:06:07 rjones Exp $ + *) + +let version = 1 ;; +let data = 10 ;; +let bits = + BITSTRING + version : 4; + data : 12 ;; + +Bitmatch.hexdump_bitstring stdout bits ;;