6 import Tests.Face as TF
8 import Tests.Tetrahedron as TT
10 -- The list of HUnit tests.
11 test_suite = TestList (concat [face_tests,
23 let qc_args = stdArgs { maxSuccess = 100,
27 putStr "prop_all_volumes_positive... "
28 quickCheckWith qc_args prop_all_volumes_positive
30 putStr "prop_all_volumes_exact... "
31 quickCheckWith qc_args prop_all_volumes_exact
33 putStr "prop_tetrahedron0_volumes_positive... "
34 quickCheckWith qc_args prop_tetrahedron0_volumes_positive
36 putStr "prop_tetrahedron1_volumes_positive... "
37 quickCheckWith qc_args prop_tetrahedron1_volumes_positive
39 putStr "prop_tetrahedron2_volumes_positive... "
40 quickCheckWith qc_args prop_tetrahedron2_volumes_positive
42 putStr "prop_tetrahedron3_volumes_positive... "
43 quickCheckWith qc_args prop_tetrahedron3_volumes_positive
45 putStr "prop_tetrahedron4_volumes_positive... "
46 quickCheckWith qc_args prop_tetrahedron4_volumes_positive
48 putStr "prop_tetrahedron5_volumes_positive... "
49 quickCheckWith qc_args prop_tetrahedron5_volumes_positive
51 putStr "prop_tetrahedron6_volumes_positive... "
52 quickCheckWith qc_args prop_tetrahedron6_volumes_positive
54 putStr "prop_tetrahedron7_volumes_positive... "
55 quickCheckWith qc_args prop_tetrahedron7_volumes_positive
57 putStr "prop_v0_all_equal... "
58 quickCheckWith qc_args prop_v0_all_equal
60 putStr "prop_factorial_greater... "
61 quickCheckWith qc_args prop_factorial_greater
63 putStr "prop_b0_v0_always_unity... "
64 quickCheckWith qc_args prop_b0_v0_always_unity
66 putStr "prop_b0_v1_always_zero... "
67 quickCheckWith qc_args prop_b0_v1_always_zero
69 putStr "prop_b0_v2_always_zero... "
70 quickCheckWith qc_args prop_b0_v2_always_zero
72 putStr "prop_b0_v3_always_zero... "
73 quickCheckWith qc_args prop_b0_v3_always_zero
75 putStr "prop_b1_v1_always_unity... "
76 quickCheckWith qc_args prop_b1_v1_always_unity
78 putStr "prop_b1_v0_always_zero... "
79 quickCheckWith qc_args prop_b1_v0_always_zero
81 putStr "prop_b1_v2_always_zero... "
82 quickCheckWith qc_args prop_b1_v2_always_zero
84 putStr "prop_b1_v3_always_zero... "
85 quickCheckWith qc_args prop_b1_v3_always_zero
87 putStr "prop_b2_v2_always_unity... "
88 quickCheckWith qc_args prop_b2_v2_always_unity
90 putStr "prop_b2_v0_always_zero... "
91 quickCheckWith qc_args prop_b2_v0_always_zero
93 putStr "prop_b2_v1_always_zero... "
94 quickCheckWith qc_args prop_b2_v1_always_zero
96 putStr "prop_b2_v3_always_zero... "
97 quickCheckWith qc_args prop_b2_v3_always_zero
99 putStr "prop_b3_v3_always_unity... "
100 quickCheckWith qc_args prop_b3_v3_always_unity
102 putStr "prop_b3_v0_always_zero... "
103 quickCheckWith qc_args prop_b3_v0_always_zero
105 putStr "prop_b3_v1_always_zero... "
106 quickCheckWith qc_args prop_b3_v1_always_zero
108 putStr "prop_b3_v2_always_zero... "
109 quickCheckWith qc_args prop_b3_v2_always_zero
111 -- putStrLn "\np. 78, (2.4)\n"
113 -- putStr "prop_c3000_identity... "
114 -- quickCheckWith qc_args TT.prop_c3000_identity
116 -- putStr "prop_c2100_identity... "
117 -- quickCheckWith qc_args TT.prop_c2100_identity
119 -- putStr "prop_c1110_identity... "
120 -- quickCheckWith qc_args TT.prop_c1110_identity
122 -- putStrLn "\np. 78, (2.5)\n"
124 -- putStr "prop_cijk1_identity... "
125 -- quickCheckWith qc_args prop_cijk1_identity
126 -- putStrLn "\np. 79, (2.6)\n"
128 -- putStr "prop_c0120_identity1... "
129 -- quickCheckWith qc_args TF.prop_c0120_identity1
131 -- putStr "prop_c0210_identity1... "
132 -- quickCheckWith qc_args TF.prop_c0210_identity1
134 -- putStr "prop_c0300_identity1... "
135 -- quickCheckWith qc_args TF.prop_c0300_identity1
137 -- putStr "prop_c1110_identity... "
138 -- quickCheckWith qc_args TF.prop_c1110_identity
140 -- putStr "prop_c1200_identity1... "
141 -- quickCheckWith qc_args prop_c1200_identity1
143 -- putStr "prop_c2100_identity1... "
144 -- quickCheckWith qc_args TF.prop_c2100_identity1
146 -- putStrLn "\np. 79, (2.7)\n"
148 -- putStr "prop_c0102_identity1... "
149 -- quickCheckWith qc_args TF.prop_c0102_identity1
151 -- putStr "prop_c0201_identity1... "
152 -- quickCheckWith qc_args TF.prop_c0201_identity1
154 -- putStr "prop_c0300_identity2... "
155 -- quickCheckWith qc_args TF.prop_c0300_identity2
157 -- putStr "prop_c1101_identity... "
158 -- quickCheckWith qc_args TF.prop_c1101_identity
160 -- putStr "prop_c1200_identity2... "
161 -- quickCheckWith qc_args TF.prop_c1200_identity2
163 -- putStr "prop_c2100_identity2... "
164 -- quickCheckWith qc_args TF.prop_c2100_identity2
166 -- putStrLn "\np. 79, (2.8)\n"
168 -- putStr "prop_c3000_identity... "
169 -- quickCheckWith qc_args TF.prop_c3000_identity
171 -- putStr "prop_c2010_identity... "
172 -- quickCheckWith qc_args TF.prop_c2010_identity
174 -- putStr "prop_c2001_identity... "
175 -- quickCheckWith qc_args TF.prop_c2001_identity
177 -- putStr "prop_c1020_identity... "
178 -- quickCheckWith qc_args TF.prop_c1020_identity
180 -- putStr "prop_c1002_identity... "
181 -- quickCheckWith qc_args TF.prop_c1002_identity
183 -- putStr "prop_c1011_identity... "
184 -- quickCheckWith qc_args TF.prop_c1011_identity
186 -- putStrLn "\np. 80, (2.9)\n"
188 -- putStr "prop_c0120_identity2... "
189 -- quickCheckWith qc_args TF.prop_c0120_identity2
191 -- putStr "prop_c0102_identity2... "
192 -- quickCheckWith qc_args TF.prop_c0102_identity2
194 -- putStr "prop_c0111_identity... "
195 -- quickCheckWith qc_args TF.prop_c0111_identity
197 -- putStr "prop_c0210_identity2... "
198 -- quickCheckWith qc_args TF.prop_c0210_identity2
200 -- putStr "prop_c0201_identity2... "
201 -- quickCheckWith qc_args TF.prop_c0201_identity2
203 -- putStr "prop_c0300_identity3... "
204 -- quickCheckWith qc_args TF.prop_c0300_identity3
206 putStr "prop_ccwx_rotation_changes_direction... "
207 quickCheckWith qc_args prop_ccwx_rotation_changes_direction
209 putStr "prop_cwx_rotation_changes_direction... "
210 quickCheckWith qc_args prop_cwx_rotation_changes_direction