WIP line tests

This commit is contained in:
Ben Cragg 2019-04-02 13:48:43 +01:00
parent c7eac06499
commit 237d77596f
1 changed files with 3 additions and 1 deletions

View File

@ -954,8 +954,10 @@ func TestLine_Formula(t *testing.T) {
t.Errorf("Line.Formula() gotM = %v, want %v", gotM, tt.wantM)
}
if gotB != tt.wantB {
if math.IsNaN(tt.wantB) && !math.IsNaN(gotB) {
t.Errorf("Line.Formula() gotB = %v, want %v", gotB, tt.wantB)
}
}
})
}
}