Made the arrayise function act on one list at a time, and made it visible for other functions
This commit is contained in:
parent
e56d02b727
commit
b1a8f1d30d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user