diff options
Diffstat (limited to 'examples/tests.hs')
-rw-r--r-- | examples/tests.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/tests.hs b/examples/tests.hs index ad70266..210f8ef 100644 --- a/examples/tests.hs +++ b/examples/tests.hs | |||
@@ -14,6 +14,7 @@ import Test.HUnit hiding ((~:),test) | |||
14 | import System.Random(randomRs,mkStdGen) | 14 | import System.Random(randomRs,mkStdGen) |
15 | import System.Info | 15 | import System.Info |
16 | import Data.List(foldl1') | 16 | import Data.List(foldl1') |
17 | import System(getArgs) | ||
17 | 18 | ||
18 | type RM = Matrix Double | 19 | type RM = Matrix Double |
19 | type CM = Matrix (Complex Double) | 20 | type CM = Matrix (Complex Double) |
@@ -452,4 +453,8 @@ bigtests = do | |||
452 | , test "eigC" $ eigTest bigmatc | 453 | , test "eigC" $ eigTest bigmatc |
453 | ] | 454 | ] |
454 | 455 | ||
455 | main = tests | 456 | main = do |
457 | args <- getArgs | ||
458 | if "--big" `elem` args | ||
459 | then bigtests | ||
460 | else tests | ||