X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=ocaml%2Fsimple_test.ml;h=438b7b572f0a6ebc845a0a90514a2e3c19782664;hb=3bf899086f0aeb5fd193be8b1f2354568f0593ad;hp=d5cb66b6b8abc11173b9f4129a352cf6c1b68a4a;hpb=71b9c490cad6115af378d01b5aaa06ff858b6243;p=fireball-separation.git diff --git a/ocaml/simple_test.ml b/ocaml/simple_test.ml index d5cb66b..438b7b5 100644 --- a/ocaml/simple_test.ml +++ b/ocaml/simple_test.ml @@ -38,14 +38,17 @@ let rec repeat f n = let main = Random.self_init (); let num = 100 in - let complex = 200 in - let no_bound_vars = 20 in + let complex = 100 in + let no_bound_vars = 10 in let vars = Array.to_list (Array.init no_bound_vars (fun x -> "x" ^ string_of_int x)) in repeat (fun _ -> let div, convs = gen complex vars in - Simple.run div convs + let str = "$ random simple test \nD " ^ div ^ String.concat "\nC " convs ^ "\n" in + print_endline str; + let open Simple in + (solve ++ problem_of ++ Parser.problem_of_string) str ) num ; prerr_endline "\n---- ALL TESTS COMPLETED ----"