diff options
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests.hs | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs index e3b6e1f..91f6742 100644 --- a/lib/Numeric/LinearAlgebra/Tests.hs +++ b/lib/Numeric/LinearAlgebra/Tests.hs | |||
@@ -34,6 +34,7 @@ import qualified Prelude | |||
34 | import System.CPUTime | 34 | import System.CPUTime |
35 | import Text.Printf | 35 | import Text.Printf |
36 | import Data.Packed.Development(unsafeFromForeignPtr,unsafeToForeignPtr) | 36 | import Data.Packed.Development(unsafeFromForeignPtr,unsafeToForeignPtr) |
37 | import Control.Arrow((***)) | ||
37 | 38 | ||
38 | #include "Tests/quickCheckCompat.h" | 39 | #include "Tests/quickCheckCompat.h" |
39 | 40 | ||
@@ -224,11 +225,16 @@ runTests :: Int -- ^ maximum dimension | |||
224 | runTests n = do | 225 | runTests n = do |
225 | setErrorHandlerOff | 226 | setErrorHandlerOff |
226 | let test p = qCheck n p | 227 | let test p = qCheck n p |
227 | putStrLn "------ mult" | 228 | putStrLn "------ mult Double" |
228 | test (multProp1 . rConsist) | 229 | test (multProp1 10 . rConsist) |
229 | test (multProp1 . cConsist) | 230 | test (multProp1 10 . cConsist) |
230 | test (multProp2 . rConsist) | 231 | test (multProp2 10 . rConsist) |
231 | test (multProp2 . cConsist) | 232 | test (multProp2 10 . cConsist) |
233 | putStrLn "------ mult Float" | ||
234 | test (multProp1 6 . (single *** single) . rConsist) | ||
235 | test (multProp1 6 . (single *** single) . cConsist) | ||
236 | test (multProp2 6 . (single *** single) . rConsist) | ||
237 | test (multProp2 6 . (single *** single) . cConsist) | ||
232 | putStrLn "------ sub-trans" | 238 | putStrLn "------ sub-trans" |
233 | test (subProp . rM) | 239 | test (subProp . rM) |
234 | test (subProp . cM) | 240 | test (subProp . cM) |