Skip to content

Commit

Permalink
removed unneeded lib. #161
Browse files Browse the repository at this point in the history
  • Loading branch information
gdey committed Feb 15, 2018
1 parent 725d01a commit abaf6e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 96 deletions.
92 changes: 0 additions & 92 deletions internal/assert/assertions.go

This file was deleted.

11 changes: 7 additions & 4 deletions maths/points/bbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package points
import (
"fmt"
"math"
"reflect"
"testing"

"github.com/terranodo/tegola"
"github.com/terranodo/tegola/internal/assert"
)

func TestDisjointBB(t *testing.T) {
Expand Down Expand Up @@ -79,7 +79,9 @@ func TestDisjointBB(t *testing.T) {

for i, tc := range testCases {
disjoint := tc.bbox1.DisjointBB(tc.bbox2)
assert.Equal(t, tc.disjoint, disjoint, fmt.Sprintf("TestCase[%v] failed", i))
if !reflect.DeepEqual(tc.disjoint, disjoint) {
t.Errorf(" [%v] disjoint, expected %v got %v", i, tc.disjoint, disjoint)
}
}
}

Expand Down Expand Up @@ -179,7 +181,8 @@ func TestAsGeoJSON(t *testing.T) {

for i, tc := range testCases {
geoJson := tc.bbox.AsGeoJSON()
msg := fmt.Sprintf("TestCase[%v] - GeoJSON doesn't match expected", i)
assert.Equal(t, tc.expectedGeoJson, geoJson, msg)
if !reflect.DeepEqual(tc.expectedGeoJson, geoJson) {
t.Errorf("[%v] geojson, expected %v got %v", i, tc.expectedGeoJson, geoJson)
}
}
}

0 comments on commit abaf6e4

Please sign in to comment.