projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c64327b
)
Added extra filtering to generated Quaternions.
author
Jarl Gullberg
<jarl.gullberg@gmail.com>
Fri, 2 Jun 2017 08:39:13 +0000
(10:39 +0200)
committer
Jarl Gullberg
<jarl.gullberg@gmail.com>
Fri, 2 Jun 2017 08:39:13 +0000
(10:39 +0200)
tests/OpenTK.Tests/Generators.fs
patch
|
blob
|
history
diff --git
a/tests/OpenTK.Tests/Generators.fs
b/tests/OpenTK.Tests/Generators.fs
index
ec19a3c
..
cbcdd92
100644
(file)
--- a/
tests/OpenTK.Tests/Generators.fs
+++ b/
tests/OpenTK.Tests/Generators.fs
@@
-40,6
+40,7
@@
module private Generators =
singleArb
|> Gen.three
|> Gen.map (fun (x,y,z) -> Quaternion(x,y,z,0.0f) |> Quaternion.Normalize)
+ |> Gen.filter (fun q -> not <| (Single.IsNaN q.Length || Single.IsInfinity q.Length ))
|> Arb.fromGen
let mat2 =