WIP line tests
This commit is contained in:
parent
c7eac06499
commit
237d77596f
|
@ -954,8 +954,10 @@ func TestLine_Formula(t *testing.T) {
|
||||||
t.Errorf("Line.Formula() gotM = %v, want %v", gotM, tt.wantM)
|
t.Errorf("Line.Formula() gotM = %v, want %v", gotM, tt.wantM)
|
||||||
}
|
}
|
||||||
if gotB != tt.wantB {
|
if gotB != tt.wantB {
|
||||||
|
if math.IsNaN(tt.wantB) && !math.IsNaN(gotB) {
|
||||||
t.Errorf("Line.Formula() gotB = %v, want %v", gotB, tt.wantB)
|
t.Errorf("Line.Formula() gotB = %v, want %v", gotB, tt.wantB)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue