math-programming-tests-0.4.0: Utility functions for testing implementations of the math-programming library.
Math.Programming.Tests.LP
makeLPTests Source #
Arguments
The runner for the API being tested.
The resulting test suite.
data Food Source #
Constructors
Defined in Math.Programming.Tests.LP
Methods
(==) :: Food -> Food -> Bool #
(/=) :: Food -> Food -> Bool #
compare :: Food -> Food -> Ordering #
(<) :: Food -> Food -> Bool #
(<=) :: Food -> Food -> Bool #
(>) :: Food -> Food -> Bool #
(>=) :: Food -> Food -> Bool #
max :: Food -> Food -> Food #
min :: Food -> Food -> Food #
readsPrec :: Int -> ReadS Food #
readList :: ReadS [Food] #
readPrec :: ReadPrec Food #
readListPrec :: ReadPrec [Food] #
showsPrec :: Int -> Food -> ShowS #
show :: Food -> String #
showList :: [Food] -> ShowS #
data Nutrient Source #
(==) :: Nutrient -> Nutrient -> Bool #
(/=) :: Nutrient -> Nutrient -> Bool #
compare :: Nutrient -> Nutrient -> Ordering #
(<) :: Nutrient -> Nutrient -> Bool #
(<=) :: Nutrient -> Nutrient -> Bool #
(>) :: Nutrient -> Nutrient -> Bool #
(>=) :: Nutrient -> Nutrient -> Bool #
max :: Nutrient -> Nutrient -> Nutrient #
min :: Nutrient -> Nutrient -> Nutrient #
readsPrec :: Int -> ReadS Nutrient #
readList :: ReadS [Nutrient] #
readPrec :: ReadPrec Nutrient #
readListPrec :: ReadPrec [Nutrient] #
showsPrec :: Int -> Nutrient -> ShowS #
show :: Nutrient -> String #
showList :: [Nutrient] -> ShowS #
dietProblemTest :: forall m. (PrintfArg (Numeric m), RealFrac (Numeric m), MonadIO m, LPMonad m) => m () Source #