Fix failing tests

This commit is contained in:
Tobie Morgan Hitchcock 2021-03-22 21:28:48 +00:00
parent 7b6472a39b
commit 4f3d446c4f
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ func TestGeo(t *testing.T) {
Convey("geo.distance(a, b, c, d) works properly", t, func() { Convey("geo.distance(a, b, c, d) works properly", t, func() {
res, _ = Run(context.Background(), "geo.distance", &sql.Point{38.898556, -77.037852}, &sql.Point{38.897147, -77.043934}) res, _ = Run(context.Background(), "geo.distance", &sql.Point{38.898556, -77.037852}, &sql.Point{38.897147, -77.043934})
So(res, ShouldEqual, 549.1557912048178) So(res, ShouldEqual, 549.1557912042738)
}) })
Convey("geo.distance(a, b, c, d) errors properly", t, func() { Convey("geo.distance(a, b, c, d) errors properly", t, func() {

View file

@ -104,7 +104,7 @@ func TestMath(t *testing.T) {
res, _ = Run(context.Background(), "math.geometricmean", 10) res, _ = Run(context.Background(), "math.geometricmean", 10)
So(res, ShouldEqual, 10) So(res, ShouldEqual, 10)
res, _ = Run(context.Background(), "math.geometricmean", test) res, _ = Run(context.Background(), "math.geometricmean", test)
So(res, ShouldEqual, 2.621805397514041) So(res, ShouldEqual, 2.6218053975140414)
}) })
Convey("math.harmonicmean() works properly", t, func() { Convey("math.harmonicmean() works properly", t, func() {