diff options
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs index 31ba2ff..7b28075 100644 --- a/lib/Numeric/LinearAlgebra/Tests.hs +++ b/lib/Numeric/LinearAlgebra/Tests.hs | |||
@@ -174,6 +174,11 @@ runTests n = do | |||
174 | test (\u -> sin u ** 2 + cos u ** 2 |~| (1::RM)) | 174 | test (\u -> sin u ** 2 + cos u ** 2 |~| (1::RM)) |
175 | test (\u -> cos u * tan u |~| sin (u::RM)) | 175 | test (\u -> cos u * tan u |~| sin (u::RM)) |
176 | test (\u -> (cos u * tan u) |~| sin (u::CM)) | 176 | test (\u -> (cos u * tan u) |~| sin (u::CM)) |
177 | putStrLn "------ read . show" | ||
178 | test (\m -> (m::RM) == read (show m)) | ||
179 | test (\m -> (m::CM) == read (show m)) | ||
180 | test (\m -> toRows (m::RM) == read (show (toRows m))) | ||
181 | test (\m -> toRows (m::CM) == read (show (toRows m))) | ||
177 | putStrLn "------ some unit tests" | 182 | putStrLn "------ some unit tests" |
178 | runTestTT $ TestList | 183 | runTestTT $ TestList |
179 | [ utest "1E5 rots" rotTest | 184 | [ utest "1E5 rots" rotTest |