From 1ecde651aec890c30bcbc3db79ce202fc323266e Mon Sep 17 00:00:00 2001 From: hanemile Date: Sat, 3 Nov 2018 17:51:37 +0100 Subject: moved the ExampleNewCoord function to the test file. --- structs_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'structs_test.go') 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} +} -- cgit 1.4.1