You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rtree_test.go
    path of file: ./repos/oak/collision
    
    the code of the file until where you have to start completion: // Copyright 2012 Daniel Connelly.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the rtree-LICENSE file.

package collision

import (
	"fmt"
	"math/rand"
	"strings"
	"testing"

	"github.com/oakmound/oak/v4/alg/floatgeom"
)

var (
	EPS = 0.00000001
)

func mustRect(p floatgeom.Point3, widths [3]float64) *Space {
	if widths[3-1] == 0 {
		widths[3-1] = 1
	}
	return &Space{Location: floatgeom.NewRect3WH(p[0], p[1], p[2], widths[0], widths[1], widths[2])}

}

func printNode(n *node, level int) {
	padding := strings.Repeat("\t", level)
	fmt.Printf("%sNode: %p\n", padding, n)
	fmt.Printf("%sParent: %p\n", padding, n.parent)
	fmt.Printf("%sLevel: %d\n", padding, n.level)
	fmt.Printf("%sLeaf: %t\n%sEntries:\n", padding, n.lea
    
func TestSplit(t *testing.T) {
	entry1 := entry{bb: mustRect(floatgeom.Point3{-3, -1}, [3]float64{2, 1, 1}).Location}
	entry2 := entry{bb: mustRect(floatgeom.Point3{1, 2}, [3]float64{1, 1, 1}).Location}
	entry3 := entry{bb: mustRect(floatgeom.Point3{-1, 0}, [3]float64{1, 1, 1}).Location}
	entry4 := entry{bb: mustRect(floatgeom.Point3{-3, -3}, [3]float64{1, 1, 1}).Location}
	entry5 := entry{bb: mustRect(floatgeom.Point3{1, -1}, [3]float64{2, 2, 1}).Location}
	entries := []entry{entry1, entry2, entry3, entry4, entry5}
	n := &node{entries: entries}

	l, r := n.split(0) // left=entry2, right=entry4
	expLeft := mustRect(floatgeom.Point3{1, -1}, [3]float64{2, 4, 1}).Location
	expRight := mustRect(floatgeom.Point3{-3, -3}, [3]float64{3, 4, 1}).Location

	lbb := l.computeBoundingBox()
	rbb := r.computeBoundingBox()
	if lbb.Min.Distance(expLeft.Min) >= EPS || lbb.Max.Distance(expLeft.Max) >= EPS {
		t.Error("expected", expLeft, "got", lbb)
	}
	if rbb.Min.Distance(expRight.Min) >= EPS || rbb.Max.Distance(expRight.Max) >= EPS {
		t.Error("expected", expRight, "got", rbb)
	}
}