Skip to content

Commit

Permalink
chore: fix error strings (#58)
Browse files Browse the repository at this point in the history
* chore: fix error strings

* Update rtree_test.go

* Update rtree_test.go
  • Loading branch information
dhconnelly authored Dec 19, 2024
1 parent ca754ec commit 88764d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rtree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"log"
"math/rand"
"sort"
"strconv"
"strings"
"testing"
)
Expand Down Expand Up @@ -1211,13 +1210,13 @@ func TestGetAllBoundingBoxes(t *testing.T) {
rtbb3 := rt3.GetAllBoundingBoxes()

if len(rtbb1) != 13 {
t.Errorf("Failed bounding box traversal expected 13 got " + strconv.Itoa(len(rtbb1)))
t.Errorf("Failed bounding box traversal expected 13, got %d", len(rtbb1))
}
if len(rtbb2) != 7 {
t.Errorf("Failed bounding box traversal expected 7 got " + strconv.Itoa(len(rtbb2)))
t.Errorf("Failed bounding box traversal expected 7, got %d", len(rtbb2))
}
if len(rtbb3) != 2 {
t.Errorf("Failed bounding box traversal expected 2 got " + strconv.Itoa(len(rtbb3)))
t.Errorf("Failed bounding box traversal expected 2, got %d", len(rtbb3))
}
}

Expand Down

0 comments on commit 88764d0

Please sign in to comment.