diff --git a/tests/OpenTK.Tests/Vectors.fs b/tests/OpenTK.Tests/Vectors.fs index 53516529..ac70d1c9 100644 --- a/tests/OpenTK.Tests/Vectors.fs +++ b/tests/OpenTK.Tests/Vectors.fs @@ -110,6 +110,7 @@ module Vector2 = // [] let ``Vector-float division is the same as component-float division`` (a : Vector2,f : float32) = - let r = a / f - Assert.ApproximatelyEqual(a.X / f,r.X) - Assert.ApproximatelyEqual(a.Y / f,r.Y) + if not (approxEq f 0.0f) then // we don't support diving by zero. + let r = a / f + Assert.ApproximatelyEqual(a.X / f,r.X) + Assert.ApproximatelyEqual(a.Y / f,r.Y)