]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Tests/Grid.hs
Move the three example 3x3x3 arrays to the Examples module.
[spline3.git] / src / Tests / Grid.hs
index 6fdbb133a6ee70a4b6a6259493b58aee2d8ab939..fbe8bc1c6a3821f25438f8087fc257e1a3289b3f 100644 (file)
@@ -7,6 +7,7 @@ import Test.QuickCheck
 
 import Assertions
 import Cube
+import Examples
 import Grid
 import Tetrahedron
 
@@ -18,20 +19,6 @@ instance Arbitrary Grid where
       return (make_grid h' fvs)
 
 
--- | Values of the function f(x,y,z) = 1 + x + xy + xyz taken at nine
---   points (hi, hj, jk) with h = 1. From example one in the paper.
---   Used in the next bunch of tests.
-trilinear :: [[[Double]]]
-trilinear = [ [ [ 1, 2, 3 ],
-                [ 1, 3, 5 ],
-                [ 1, 4, 7 ] ],
-              [ [ 1, 2, 3 ],
-                [ 1, 4, 7 ],
-                [ 1, 6, 11 ] ],
-              [ [ 1, 2, 3 ],
-                [ 1, 5, 9 ],
-                [ 1, 8, 15 ]]]
-
 -- | Check the value of c0030 for tetrahedron0 belonging to the
 --   cube centered on (1,1,1) with a grid constructed from the
 --   trilinear values. See example one in the paper.