fixing tests

This commit is contained in:
Will Charczuk 2018-04-05 00:47:39 -07:00
parent 70e6cfddc5
commit 7c3982fe3d
16 changed files with 31 additions and 30 deletions

View file

@ -14,7 +14,7 @@ func TestPoly(t *testing.T) {
c, err := Poly(xGiven, yGiven, degree)
assert.Nil(err)
assert.Len(c, 3)
assert.Len(3, c)
assert.InDelta(c[0], 0.999999999, DefaultEpsilon)
assert.InDelta(c[1], 2, DefaultEpsilon)