You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
192 B

package tree
import "testing"
func TestTree(t *testing.T) {
tr := Node{2, Leaf(2), Node{3, Leaf(4), Leaf(5)}}
tr2 := Node{1, tr, tr}
t.Logf("%v", depth(tr))
t.Logf("%v", depth(tr2))
}