Made the arrayise function act on one list at a time, and made it visible for other functions

This commit is contained in:
Neil Brown 2007-12-13 15:32:46 +00:00
parent e56d02b727
commit b1a8f1d30d

View File

@ -333,10 +333,10 @@ testArrayCheck = TestList
where
pass :: (Int, [[Integer]], [[Integer]], [[Integer]]) -> Test
pass (ind, expIneq, inpEq, inpIneq) = TestCase $ assertEqual ("testArrayCheck " ++ show ind)
(Just $ arrayise expIneq) (solveConstraints (arrayise inpEq) (arrayise inpIneq))
(Just $ map arrayise expIneq) (solveConstraints (map arrayise inpEq) (map arrayise inpIneq))
arrayise :: [[Integer]] -> [Array Int Integer]
arrayise = map (simpleArray . zip [0..])
arrayise :: [Integer] -> Array Int Integer
arrayise = simpleArray . zip [0..]
tests :: Test