fixing tests
This commit is contained in:
parent
70e6cfddc5
commit
7c3982fe3d
16 changed files with 31 additions and 30 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue