From 4f3d446c4f58b876099848f36317272dd9dc5102 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 22 Mar 2021 21:28:48 +0000 Subject: [PATCH] Fix failing tests --- util/fncs/geo_test.go | 2 +- util/fncs/math_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/fncs/geo_test.go b/util/fncs/geo_test.go index 3ddd0432..c32997d1 100644 --- a/util/fncs/geo_test.go +++ b/util/fncs/geo_test.go @@ -60,7 +60,7 @@ func TestGeo(t *testing.T) { 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}) - So(res, ShouldEqual, 549.1557912048178) + So(res, ShouldEqual, 549.1557912042738) }) Convey("geo.distance(a, b, c, d) errors properly", t, func() { diff --git a/util/fncs/math_test.go b/util/fncs/math_test.go index dfdef0f4..bca78b09 100644 --- a/util/fncs/math_test.go +++ b/util/fncs/math_test.go @@ -104,7 +104,7 @@ func TestMath(t *testing.T) { res, _ = Run(context.Background(), "math.geometricmean", 10) So(res, ShouldEqual, 10) res, _ = Run(context.Background(), "math.geometricmean", test) - So(res, ShouldEqual, 2.621805397514041) + So(res, ShouldEqual, 2.6218053975140414) }) Convey("math.harmonicmean() works properly", t, func() {