Skip to content
Snippets Groups Projects
Commit 221a9ed8 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

funclang series5: Moved tree insert test to separate file.

parent cab67bd0
No related branches found
No related tags found
No related merge requests found
......@@ -38,14 +38,3 @@ let rec lookup value = function
Leaf -> false
| Node (v, _, left, right) -> v = value
|| (if value < v then lookup value left else lookup value right)
let a = Leaf
let a = insert a 13
let a = insert a 8
let a = insert a 17
let a = insert a 1
let a = insert a 11
let a = insert a 15
let a = insert a 6
let a = insert a 22
let a = insert a 27
#use "ass11.ml"
(* Note: to run this test, open an OCaml shell and type
* '#use "test_tree.ml";;'. This will show the progress of insertions
* into 'a'. *)
let a = Leaf
let a = insert a 13
let a = insert a 8
let a = insert a 17
let a = insert a 1
let a = insert a 11
let a = insert a 15
let a = insert a 6
let a = insert a 22
let a = insert a 27
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment