import Cardinal (cardinal_tests, cardinal_properties)
import FunctionValues (function_values_tests, function_values_properties)
+import Grid (grid_tests, slow_tests)
import Misc (misc_tests, misc_properties)
import Tests.Cube as TC
-import Tests.Grid
import Tests.Tetrahedron as TT
main :: IO ()
-grid_tests :: Test.Framework.Test
-grid_tests =
- testGroup "Grid Tests" [
- trilinear_c0_t0_tests,
- tc "tetrahedra collision test isn't too sensitive"
- test_tetrahedra_collision_sensitivity,
- tc "trilinear reproduced" test_trilinear_reproduced,
- tc "zeros reproduced" test_zeros_reproduced ]
tetrahedron_tests :: Test.Framework.Test
cube_properties :: Test.Framework.Test
cube_properties =
testGroup "Cube Properties" [
- tp "front/back tetrahedra are disjoint" prop_front_back_tetrahedra_disjoint,
- tp "top/down tetrahedra are disjoint" prop_top_down_tetrahedra_disjoint,
- tp "left/right tetrahedra are disjoint" prop_left_right_tetrahedra_disjoint,
+ tp "opposite octant tetrahedra are disjoint (1)"
+ prop_opposite_octant_tetrahedra_disjoint1,
+ tp "opposite octant tetrahedra are disjoint (2)"
+ prop_opposite_octant_tetrahedra_disjoint2,
+ tp "opposite octant tetrahedra are disjoint (3)"
+ prop_opposite_octant_tetrahedra_disjoint3,
+ tp "opposite octant tetrahedra are disjoint (4)"
+ prop_opposite_octant_tetrahedra_disjoint4,
+ tp "opposite octant tetrahedra are disjoint (5)"
+ prop_opposite_octant_tetrahedra_disjoint5,
+ tp "opposite octant tetrahedra are disjoint (6)"
+ prop_opposite_octant_tetrahedra_disjoint6,
tp "all volumes positive" prop_all_volumes_positive,
tp "all volumes exact" prop_all_volumes_exact,
tp "v0 all equal" prop_v0_all_equal,
$ prop_swapping_vertices_doesnt_affect_coefficients4 ]
--- Do the slow tests last so we can stop paying attention.
-slow_tests :: Test.Framework.Test
-slow_tests =
- testGroup "Slow Tests" [
- tp "cube indices within bounds" prop_cube_indices_never_go_out_of_bounds,
- tc "trilinear9x9x9 reproduced" test_trilinear9x9x9_reproduced ]
-
-
tests :: [Test.Framework.Test]
tests = [ cardinal_tests,
function_values_tests,