From: Stefano Zacchiroli Date: Tue, 6 Apr 2004 09:56:08 +0000 (+0000) Subject: - added test file X-Git-Tag: dead_dir_walking~81 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=da6e39e544f2bcb3fdddd18507f9f7f076161a14;p=helm.git - added test file --- diff --git a/helm/ocaml/getter/.cvsignore b/helm/ocaml/getter/.cvsignore index 6b3eba302..806547a56 100644 --- a/helm/ocaml/getter/.cvsignore +++ b/helm/ocaml/getter/.cvsignore @@ -1 +1,2 @@ *.cm[iaox] *.cmxa +test diff --git a/helm/ocaml/getter/test.ml b/helm/ocaml/getter/test.ml new file mode 100644 index 000000000..d53e42bbb --- /dev/null +++ b/helm/ocaml/getter/test.ml @@ -0,0 +1,15 @@ + +let _ = Helm_registry.load_from "foo.conf.xml" +let fname = + Http_getter.getxml ~format:`Normal ~patch_dtd:true + "cic:/Coq/Init/Logic/False.ind" +in +let ic = open_in fname in +(try + while true do + let line = input_line ic in + print_endline line + done +with End_of_file -> ()); +Sys.remove fname +