]> matita.cs.unibo.it Git - helm.git/commitdiff
- added test file
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 6 Apr 2004 09:56:08 +0000 (09:56 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 6 Apr 2004 09:56:08 +0000 (09:56 +0000)
helm/ocaml/getter/.cvsignore
helm/ocaml/getter/test.ml [new file with mode: 0644]

index 6b3eba302c2590bfe8aa1d8b46c0de09ccd948fb..806547a564aecafab6e700419bb67c1ff59933c8 100644 (file)
@@ -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 (file)
index 0000000..d53e42b
--- /dev/null
@@ -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
+