]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - test/TestSuite.hs
Add a ton of new tests based on pages 79 and 80 of Sorokina and Zeilfelder.
[spline3.git] / test / TestSuite.hs
index 26c6bc943d2ac7d5b7fbabbdc5c491cc41023bae..cd39f575d6beb152c8b32cdf2527fe2f2352c1e0 100644 (file)
@@ -1,9 +1,9 @@
 import Test.HUnit
 import Test.QuickCheck
 
-import Tests.Face
+import Tests.Face as TF
 import Tests.Misc
-import Tests.Tetrahedron
+import Tests.Tetrahedron as TT
 
 -- The list of HUnit tests.
 test_suite = TestList (concat [misc_tests,
@@ -17,12 +17,12 @@ main = do
   putStrLn ""
   putStrLn "QuickCheck"
   putStrLn "----------"
-  let qc_args = stdArgs { maxSuccess = 1000,
-                          maxDiscard = 5000,
-                          maxSize = 1000 }
+  let qc_args = stdArgs { maxSuccess = 100,
+                          maxDiscard = 500,
+                          maxSize = 100 }
 
-  putStr "prop_all_volumes_nonnegative... "
-  quickCheckWith qc_args prop_all_volumes_nonnegative
+  putStr "prop_all_volumes_positive... "
+  quickCheckWith qc_args prop_all_volumes_positive
 
   putStr "prop_factorial_greater... "
   quickCheckWith qc_args prop_factorial_greater
@@ -76,12 +76,92 @@ main = do
   quickCheckWith qc_args prop_b3_v2_always_zero
 
   putStr "prop_c3000_identity... "
-  quickCheckWith qc_args prop_c3000_identity
+  quickCheckWith qc_args TT.prop_c3000_identity
 
   putStr "prop_c2100_identity... "
-  quickCheckWith qc_args prop_c2100_identity
+  quickCheckWith qc_args TT.prop_c2100_identity
 
   putStr "prop_c1110_identity... "
-  quickCheckWith qc_args prop_c1110_identity
+  quickCheckWith qc_args TT.prop_c1110_identity
+
+  putStrLn "\np. 79, (2.6)\n"
+
+  putStr "prop_c0120_identity1... "
+  quickCheckWith qc_args TF.prop_c0120_identity1
+
+  putStr "prop_c0210_identity1... "
+  quickCheckWith qc_args TF.prop_c0210_identity1
+
+  putStr "prop_c0300_identity1... "
+  quickCheckWith qc_args TF.prop_c0300_identity1
+
+  putStr "prop_c1110_identity... "
+  quickCheckWith qc_args TF.prop_c1110_identity
+
+  putStr "prop_c1200_identity1... "
+  quickCheckWith qc_args prop_c1200_identity1
+
+  putStr "prop_c2100_identity1... "
+  quickCheckWith qc_args TF.prop_c2100_identity1
+
+  putStrLn "\np. 79, (2.7)\n"
+
+  putStr "prop_c0102_identity1... "
+  quickCheckWith qc_args TF.prop_c0102_identity1
+
+  putStr "prop_c0201_identity1... "
+  quickCheckWith qc_args TF.prop_c0201_identity1
+
+  putStr "prop_c0300_identity2... "
+  quickCheckWith qc_args TF.prop_c0300_identity2
+
+  putStr "prop_c1101_identity... "
+  quickCheckWith qc_args TF.prop_c1101_identity
+
+  putStr "prop_c1200_identity2... "
+  quickCheckWith qc_args TF.prop_c1200_identity2
+
+  putStr "prop_c2100_identity2... "
+  quickCheckWith qc_args TF.prop_c2100_identity2
+
+  putStrLn "\np. 79, (2.8)\n"
+
+  putStr "prop_c3000_identity... "
+  quickCheckWith qc_args TF.prop_c3000_identity
+
+  putStr "prop_c2010_identity... "
+  quickCheckWith qc_args TF.prop_c2010_identity
+
+  putStr "prop_c2001_identity... "
+  quickCheckWith qc_args TF.prop_c2001_identity
+
+  putStr "prop_c1020_identity... "
+  quickCheckWith qc_args TF.prop_c1020_identity
+
+  putStr "prop_c1002_identity... "
+  quickCheckWith qc_args TF.prop_c1002_identity
+
+  putStr "prop_c1011_identity... "
+  quickCheckWith qc_args TF.prop_c1011_identity
+
+  putStrLn "\np. 80, (2.9)\n"
+
+  putStr "prop_c0120_identity2... "
+  quickCheckWith qc_args TF.prop_c0120_identity2
+
+  putStr "prop_c0102_identity2... "
+  quickCheckWith qc_args TF.prop_c0102_identity2
+
+  putStr "prop_c0111_identity... "
+  quickCheckWith qc_args TF.prop_c0111_identity
+
+  putStr "prop_c0210_identity2... "
+  quickCheckWith qc_args TF.prop_c0210_identity2
+
+  putStr "prop_c0201_identity2... "
+  quickCheckWith qc_args TF.prop_c0201_identity2
+
+  putStr "prop_c0300_identity3... "
+  quickCheckWith qc_args TF.prop_c0300_identity3
 
   return ()