about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--structs.go5
-rw-r--r--structs_test.go6
2 files changed, 6 insertions, 5 deletions
diff --git a/structs.go b/structs.go
index 0fcdc14..8689c7a 100644
--- a/structs.go
+++ b/structs.go
@@ -19,11 +19,6 @@ func NewCoord(x float64, y float64) Coord {
 	return Coord{x, y}
 }
 
-func ExampleNewCoord() {
-	fmt.Println(NewCoord(1, 1))
-	// Output: {1, 1}
-}
-
 // NewBoundingBox returns a new bounding with the given struct elements
 func NewBoundingBox(inCenter Coord, inHalfDimension float64) BoundingBox {
 	return BoundingBox{
diff --git a/structs_test.go b/structs_test.go
index 108cbc3..ceeace7 100644
--- a/structs_test.go
+++ b/structs_test.go
@@ -1,6 +1,7 @@
 package quadtree
 
 import (
+	"fmt"
 	"testing"
 )
 
@@ -125,3 +126,8 @@ func TestInsert(t *testing.T) {
 	// Print the stuff generated
 	t.Logf("Complete Tree: %v\n", newQuadtree.northEast.southWest.southWest.northEast)
 }
+
+func ExampleNewCoord() {
+	fmt.Println(NewCoord(1, 1))
+	// Output: {1, 1}
+}